We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e172aed commit 05b2694Copy full SHA for 05b2694
src/dsql/Parser.cpp
@@ -545,7 +545,10 @@ int Parser::yylexAux()
545
Attachment* const attachment = tdbb->getAttachment();
546
const MetaName name(attachment->nameToMetaCharSet(tdbb, MetaName(buffer, p - buffer)));
547
const unsigned charLength = metadataCharSet->length(
548
- name.length(), (const UCHAR*) name.c_str(), true);
+ name.length(), (const UCHAR*) name.c_str(), false);
549
+
550
+ if (charLength == 0)
551
+ yyabandon(yyposn, -104, isc_dyn_zero_len_id);
552
553
if (name.length() > MAX_SQL_IDENTIFIER_LEN || charLength > METADATA_IDENTIFIER_CHAR_LEN)
554
yyabandon(yyposn, -104, isc_dyn_name_longer);
0 commit comments