From 937b63af3322f7f8b5e869b2c7431a2deaec3113 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 22:47:20 +0100 Subject: use startsWith() instead of compareToAscii() brain damage... Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff --- connectivity/source/commontools/AutoRetrievingBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity/source/commontools/AutoRetrievingBase.cxx') 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")); -- cgit