summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_tools.hxx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-08-12 16:56:43 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-11-17 21:15:24 +0100
commit9f479d9334262f65ea844281ef0281ed736d59fe (patch)
tree14fa8d4c56d23dfc75c835f89f0c6ac089ece458 /connectivity/source/drivers/postgresql/pq_tools.hxx
parent391193b62233866e0e6789c7606b5d8a87cebc3a (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_tools.hxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.hxx b/connectivity/source/drivers/postgresql/pq_tools.hxx
index fac4b88631d4..71de5ee44164 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.hxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* $RCSfile: pq_tools.hxx,v $
@@ -90,27 +91,32 @@ com::sun::star::util::DateTime string2DateTime( const rtl::OUString & dateTime )
rtl::OUString concatQualified( const rtl::OUString & a, const rtl::OUString &b);
-void bufferQuoteConstant( rtl::OUStringBuffer & buf, const rtl::OUString & str, sal_Int32 encoding );
+rtl::OString OUStringToOString( rtl::OUString str, ConnectionSettings *settings);
-void bufferEscapeConstant( rtl::OUStringBuffer & buf, const rtl::OUString & str, sal_Int32 encoding );
+void bufferQuoteConstant( rtl::OUStringBuffer & buf, const rtl::OUString & str, ConnectionSettings *settings );
+ void bufferQuoteAnyConstant( rtl::OUStringBuffer & buf, const com::sun::star::uno::Any &val, ConnectionSettings *settings );
+
+void bufferEscapeConstant( rtl::OUStringBuffer & buf, const rtl::OUString & str, ConnectionSettings *settings );
::rtl::OUString sqltype2string(
const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > & column );
void bufferQuoteQualifiedIdentifier(
- rtl::OUStringBuffer & buf, const rtl::OUString &schema, const rtl::OUString &name);
+ rtl::OUStringBuffer & buf, const rtl::OUString &schema, const rtl::OUString &name, ConnectionSettings *settings );
void bufferQuoteQualifiedIdentifier(
rtl::OUStringBuffer & buf,
const rtl::OUString &schema,
const rtl::OUString &name,
- const rtl::OUString &col);
+ const rtl::OUString &col,
+ ConnectionSettings *settings );
-void bufferQuoteIdentifier( rtl::OUStringBuffer & buf, const rtl::OUString &toQuote );
+void bufferQuoteIdentifier( rtl::OUStringBuffer & buf, const rtl::OUString &toQuote, ConnectionSettings *settings );
void bufferKey2TableConstraint(
rtl::OUStringBuffer &buf,
- const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > &key );
+ const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > &key,
+ ConnectionSettings *settings );
rtl::OUString extractStringProperty(
const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > & descriptor,