fdo#84073: change ODBC/JDBC escapes to lowercase
Change-Id: I19ce3acb9575fbef8273bbd84cb4dc322e101ac8
This commit is contained in:
committed by
Lionel Elie Mamane
parent
b5167e1866
commit
ee12e843c6
@@ -136,7 +136,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
|
||||
if ( bOk )
|
||||
{
|
||||
if (bQuote)
|
||||
aRet.appendAscii("{TS '");
|
||||
aRet.appendAscii("{ts '");
|
||||
aRet.append(DBTypeConversion::toDateTimeString(aDateTime));
|
||||
if (bQuote)
|
||||
aRet.appendAscii("'}");
|
||||
@@ -166,7 +166,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
|
||||
bOk = _rVal >>= aDate;
|
||||
OSL_VERIFY_RES( bOk, "DBTypeConversion::toSQLString: _rVal is not date!");
|
||||
if (bQuote)
|
||||
aRet.appendAscii("{D '");
|
||||
aRet.appendAscii("{d '");
|
||||
aRet.append(DBTypeConversion::toDateString(aDate));
|
||||
if (bQuote)
|
||||
aRet.appendAscii("'}");
|
||||
@@ -193,7 +193,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal, bool b
|
||||
bOk = _rVal >>= aTime;
|
||||
OSL_VERIFY_RES( bOk,"DBTypeConversion::toSQLString: _rVal is not time!");
|
||||
if (bQuote)
|
||||
aRet.appendAscii("{T '");
|
||||
aRet.appendAscii("{t '");
|
||||
aRet.append(DBTypeConversion::toTimeString(aTime));
|
||||
if (bQuote)
|
||||
aRet.appendAscii("'}");
|
||||
|
@@ -4660,6 +4660,14 @@ OString OSQLParser::TokenIDToStr(sal_uInt32 nTokenID, const IParseContext* pCont
|
||||
aStr = yytname[YYTRANSLATE(nTokenID)];
|
||||
if(aStr.startsWith("SQL_TOKEN_"))
|
||||
aStr = aStr.copy(10);
|
||||
switch( nTokenID )
|
||||
{
|
||||
case SQL_TOKEN_OJ:
|
||||
case SQL_TOKEN_TS:
|
||||
case SQL_TOKEN_T:
|
||||
case SQL_TOKEN_D:
|
||||
aStr = aStr.toAsciiLowerCase();
|
||||
}
|
||||
}
|
||||
return aStr;
|
||||
}
|
||||
|
@@ -1074,7 +1074,7 @@ namespace
|
||||
{
|
||||
// create outer join
|
||||
if ( bUseEscape )
|
||||
aStr += "{ OJ ";
|
||||
aStr += "{ oj ";
|
||||
aStr += aJoin;
|
||||
if ( bUseEscape )
|
||||
aStr += " }";
|
||||
|
@@ -76,7 +76,7 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="useoj">
|
||||
<property name="label" translatable="yes">Use Outer Join syntax '{OJ }'</property>
|
||||
<property name="label" translatable="yes">Use Outer Join syntax '{oj }'</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
|
Reference in New Issue
Block a user