Timestamp written as a string so escape required

This commit is contained in:
2020-11-09 12:56:12 +00:00
parent 7eaf3fd84c
commit f2f48cac5d

View File

@@ -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;