Kaydet (Commit) 3783df20 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

rtl_str_shortenedCompare_WithLength -> OString::startsWith

Change-Id: I3eabdeba10d8d1064f00b817b04f03aad8a6b352
üst dd1cdac2
......@@ -777,9 +777,7 @@ Reference< XResultSet > getGeneratedValuesFromLastInsert(
value = OStringToOUString(j->second, RTL_TEXTENCODING_ASCII_US );
// check, whether it is a sequence
if( rtl_str_shortenedCompare_WithLength(
j->second.getStr(), j->second.getLength(),
RTL_CONSTASCII_STRINGPARAM( "nextval(" ), 8 ) == 0 )
if( j->second.startsWith("nextval(") )
{
// retrieve current sequence value:
OUStringBuffer myBuf(128 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment