summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/AutoRetrievingBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/AutoRetrievingBase.cxx')
-rw-r--r--connectivity/source/commontools/AutoRetrievingBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/AutoRetrievingBase.cxx b/connectivity/source/commontools/AutoRetrievingBase.cxx
index e88fe4160214..6e39c85cc8b4 100644
--- a/connectivity/source/commontools/AutoRetrievingBase.cxx
+++ b/connectivity/source/commontools/AutoRetrievingBase.cxx
@@ -27,7 +27,7 @@ namespace connectivity
OSL_ENSURE( m_bAutoRetrievingEnabled,"Illegal call here. isAutoRetrievingEnabled is false!");
sStmt = sStmt.toAsciiUpperCase();
::rtl::OUString sStatement;
- if ( sStmt.compareToAscii("INSERT",6) == 0 )
+ if ( sStmt.startsWith("INSERT") )
{
sStatement = m_sGeneratedValueStatement;
static const ::rtl::OUString sColumn(RTL_CONSTASCII_USTRINGPARAM("$column"));