connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx | 18 +++++----- 1 file changed, 9 insertions(+), 9 deletions(-)
New commits: commit 0b46c0617199edc11fd5f7cfb0a56049b3746726 Author: Lionel Elie Mamane <lio...@mamane.lu> Date: Sat Dec 14 06:00:18 2013 +0100 odbc DBMetaData: NULL pattern equivalent to "%", not "%foo" Change-Id: Ief475a1bf6e65b4786e8ee9c025b204f143a30e0 diff --git a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx index f7af806..f22b23a 100644 --- a/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbcbase/ODatabaseMetaDataResultSet.cxx @@ -854,7 +854,7 @@ void ODatabaseMetaDataResultSet::openTables(const Any& catalog, const OUString& OString aPKQ,aPKO,aPKN,aCOL; const OUString *pSchemaPat = NULL; - if(schemaPattern.toChar() != '%') + if(schemaPattern != "%") pSchemaPat = &schemaPattern; else pSchemaPat = NULL; @@ -951,7 +951,7 @@ void ODatabaseMetaDataResultSet::openColumnPrivileges( const Any& catalog, cons { const OUString *pSchemaPat = NULL; - if(schema.toChar() != '%') + if(schema != "%") pSchemaPat = &schema; else pSchemaPat = NULL; @@ -986,7 +986,7 @@ void ODatabaseMetaDataResultSet::openColumns( const Any& catalog, { const OUString *pSchemaPat = NULL; - if(schemaPattern.toChar() != '%') + if(schemaPattern != "%") pSchemaPat = &schemaPattern; else pSchemaPat = NULL; @@ -1054,7 +1054,7 @@ void ODatabaseMetaDataResultSet::openProcedureColumns( const Any& catalog, { const OUString *pSchemaPat = NULL; - if(schemaPattern.toChar() != '%') + if(schemaPattern != "%") pSchemaPat = &schemaPattern; else pSchemaPat = NULL; @@ -1088,7 +1088,7 @@ void ODatabaseMetaDataResultSet::openProcedures(const Any& catalog, const OUStri { const OUString *pSchemaPat = NULL; - if(schemaPattern.toChar() != '%') + if(schemaPattern != "%") pSchemaPat = &schemaPattern; else pSchemaPat = NULL; @@ -1132,7 +1132,7 @@ void ODatabaseMetaDataResultSet::openSpecialColumns(sal_Bool _bRowVer,const Any& const OUString *pSchemaPat = NULL; - if(schema.toChar() != '%') + if(schema != "%") pSchemaPat = &schema; else pSchemaPat = NULL; @@ -1219,7 +1219,7 @@ void ODatabaseMetaDataResultSet::openPrimaryKeys(const Any& catalog, const OUStr { const OUString *pSchemaPat = NULL; - if(schema.toChar() != '%') + if(schema != "%") pSchemaPat = &schema; else pSchemaPat = NULL; @@ -1248,7 +1248,7 @@ void ODatabaseMetaDataResultSet::openTablePrivileges(const Any& catalog, const O { const OUString *pSchemaPat = NULL; - if(schemaPattern.toChar() != '%') + if(schemaPattern != "%") pSchemaPat = &schemaPattern; else pSchemaPat = NULL; @@ -1278,7 +1278,7 @@ void ODatabaseMetaDataResultSet::openIndexInfo( const Any& catalog, const OUStri { const OUString *pSchemaPat = NULL; - if(schema.toChar() != '%') + if(schema != "%") pSchemaPat = &schema; else pSchemaPat = NULL; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits