summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-08-15 09:30:05 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-08-15 09:30:05 +0000
commit60dbe85085c5fd6e1994d340858b5d407244228d (patch)
tree33680aa02bc5b973e9574521157065e9c3a48616 /connectivity
parent5837334823d76688beee59e36e95b7b3d70260a2 (diff)
INTEGRATION: CWS dba30 (1.37.14); FILE MERGED
2006/07/19 10:57:19 fs 1.37.14.3: RESYNC: (1.38-1.41); FILE MERGED 2006/03/21 15:54:41 fs 1.37.14.2: RESYNC: (1.37-1.38); FILE MERGED 2005/12/14 13:25:59 oj 1.37.14.1: #i58987# check for boolean as comparison
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/parse/sqlnode.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 93876cefcbd7..c813b0afc978 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: sqlnode.cxx,v $
*
- * $Revision: 1.42 $
+ * $Revision: 1.43 $
*
- * last change: $Author: ihi $ $Date: 2006-08-04 13:50:26 $
+ * last change: $Author: hr $ $Date: 2006-08-15 10:30:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -877,7 +877,7 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType,OSQLParseNode*& pLiteral)
OSQLParseNode* pReturn = pLiteral;
- if ( pLiteral->isRule() && !SQL_ISRULE(pLiteral,value_exp))
+ if ( ( pLiteral->isRule() && !SQL_ISRULE(pLiteral,value_exp) ) || SQL_ISTOKEN(pLiteral,FALSE) || SQL_ISTOKEN(pLiteral,TRUE) )
{
switch(nType)
{
@@ -932,6 +932,7 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType,OSQLParseNode*& pLiteral)
switch(nType)
{
case DataType::BIT:
+ case DataType::BOOLEAN:
case DataType::DECIMAL:
case DataType::NUMERIC:
case DataType::TINYINT: