diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-12 16:56:43 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:24 +0100 |
commit | 9f479d9334262f65ea844281ef0281ed736d59fe (patch) | |
tree | 14fa8d4c56d23dfc75c835f89f0c6ac089ece458 /connectivity/source/drivers/postgresql/pq_xkeys.cxx | |
parent | 391193b62233866e0e6789c7606b5d8a87cebc3a (diff) |
pgsql-sdbc: properly delegate escaping to libpq
In particular, this makes it work whether server parameter standards_conforming_strings is off or on
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xkeys.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xkeys.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx index 0fa8f166a743..3abdb901ff8e 100644 --- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx +++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx @@ -300,9 +300,9 @@ void Keys::appendByDescriptor( OUStringBuffer buf( 128 ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ALTER TABLE " ) ); - bufferQuoteQualifiedIdentifier( buf, m_schemaName, m_tableName ); + bufferQuoteQualifiedIdentifier( buf, m_schemaName, m_tableName, m_pSettings ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( " ADD " ) ); - bufferKey2TableConstraint( buf, descriptor ); + bufferKey2TableConstraint( buf, descriptor, m_pSettings ); Reference< XStatement > stmt = m_origin->createStatement(); @@ -334,9 +334,9 @@ void Keys::dropByIndex( sal_Int32 index ) OUStringBuffer buf( 128 ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ALTER TABLE " ) ); - bufferQuoteQualifiedIdentifier( buf, m_schemaName, m_tableName ); + bufferQuoteQualifiedIdentifier( buf, m_schemaName, m_tableName, m_pSettings ); buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( " DROP CONSTRAINT " ) ); - bufferQuoteIdentifier( buf, extractStringProperty( set , getStatics().NAME ) ); + bufferQuoteIdentifier( buf, extractStringProperty( set , getStatics().NAME ), m_pSettings ); m_origin->createStatement()->executeUpdate( buf.makeStringAndClear() ); |