]> git.sur5r.net Git - bacula/bacula/commitdiff
Complete the quoting experience and do this right after every connection:
authorDan Langille <dan@langille.org>
Sat, 15 Sep 2007 03:22:24 +0000 (03:22 +0000)
committerDan Langille <dan@langille.org>
Sat, 15 Sep 2007 03:22:24 +0000 (03:22 +0000)
  "set standard_conforming_strings=on"

This avoid the warning: WARNING:  nonstandard use of \\ in a string literal

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5574 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/postgresql.c

index 4a0d2d816ff42d5f7af8e83be017705b9c4fe7ca..82d4e09112c6bc11e934d00735ee98ca653cf5fe 100644 (file)
@@ -211,6 +211,12 @@ db_open_database(JCR *jcr, B_DB *mdb)
    }
 
    sql_query(mdb, "SET datestyle TO 'ISO, YMD'");
+   
+   /* tell PostgreSQL we are using standard conforming strings
+      and avoid warnings such as:
+       WARNING:  nonstandard use of \\ in a string literal
+   */
+   sql_query(mdb, "set standard_conforming_strings=on");
 
    V(mutex);
    return 1;