Skip to content

Commit 6a08602

Browse files
committed
bin srch -ve val working
1 parent db6bbf3 commit 6a08602

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test_ulog_sqlite.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ int append_records(int argc, char *argv[], struct uls_write_context *ctx) {
252252
} else {
253253
if (*chr == '.')
254254
isInt = 0;
255+
if (*chr == '-' && chr > col_data) {
256+
isInt = 0;
257+
isReal = 0;
258+
}
255259
}
256260
chr++;
257261
}
@@ -431,6 +435,10 @@ int resolve_value(char *value, byte *out_val) {
431435
} else {
432436
if (*chr == '.')
433437
isInt = 0;
438+
if (*chr == '-' && chr > value) {
439+
isInt = 0;
440+
isReal = 0;
441+
}
434442
}
435443
chr++;
436444
}

0 commit comments

Comments
 (0)