diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-10-30 11:40:22 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-10-30 12:39:37 +0100 |
commit | 338ea7617f33d975cc35f44030f522ec5d77adfb (patch) | |
tree | ec6106268a60c400e5a3bd8e47296733703bfe5f /connectivity/source/parse | |
parent | Introduce combined 2&3 test for SQL Token (diff) | |
download | core-338ea7617f33d975cc35f44030f522ec5d77adfb.tar.gz core-338ea7617f33d975cc35f44030f522ec5d77adfb.zip |
Return proper UNKNOWN_RULE instead of 0 for unknown rule
also make unknown rule -1 to better separate it
Before, an unknown rule actually went to 0 == OSQLParser::select_statement
Diffstat (limited to 'connectivity/source/parse')
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index d559c292df63..e83a122b75a5 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4743,7 +4743,7 @@ sal_uInt32 OSQLParser::StrToRuleID(const ::rtl::OString & rValue) } // Nicht gefunden - return 0; + return OParseNode::UNKNOWN_RULE; } //----------------------------------------------------------------------------- |