NULL string check on escape

This commit is contained in:
bwilliams committed 2020-10-08 13:17:51 +01:00
1 parent e0d0515188
commit 4ac935e478
1 file changed
+3 -1
+3 -1
View File
@@ -463,7 +463,9 @@ void escapeColumnName_sb(str_builder *sb,
strbld_char(sb,'.');
}
strbld_char(sb,'`');
strbld_str(sb, col, col_len);
if (col != 0) {
strbld_str(sb, col, col_len);
}
strbld_char(sb,'`');
}