Timestamp written as a string so escape required
This commit is contained in:
@@ -71,7 +71,9 @@ void db_value_sbva(str_builder *sb, e_column_type type, uint32_t n_args, va_list
|
||||
|
||||
if (type == TYPE_TIMESTAMP) {
|
||||
if (db_timestampString(va_arg(args, int64_t), &tmp_str, &tmp_len) != 0) {
|
||||
strbld_char(sb, '\'');
|
||||
strbld_str(sb, tmp_str, tmp_len);
|
||||
strbld_char(sb, '\'');
|
||||
free(tmp_str);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user