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
+2
+2
View File
@@ -463,7 +463,9 @@ void escapeColumnName_sb(str_builder *sb,
strbld_char(sb,'.'); strbld_char(sb,'.');
} }
strbld_char(sb,'`'); strbld_char(sb,'`');
if (col != 0) {
strbld_str(sb, col, col_len); strbld_str(sb, col, col_len);
}
strbld_char(sb,'`'); strbld_char(sb,'`');
} }