]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Apply Martin Simmons patch that should turn off the new API usage
authorKern Sibbald <kern@sibbald.com>
Fri, 7 Sep 2007 12:57:05 +0000 (12:57 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 7 Sep 2007 12:57:05 +0000 (12:57 +0000)
     when batch insert is turned off allowing building on older
     PostgreSQLs.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5491 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/postgresql.c
bacula/technotes-2.1

index 45d71b016762e8c9dd1086c492c28cb056e3cf8a..ff73a9f9c5ba661ca9d623555ceaba6fba965d52 100644 (file)
@@ -596,6 +596,8 @@ bail_out:
    return id;
 }
 
+#ifdef HAVE_BATCH_FILE_INSERT
+
 int my_postgresql_batch_start(JCR *jcr, B_DB *mdb)
 {
    char *query = "COPY batch FROM STDIN";
@@ -734,6 +736,8 @@ int my_postgresql_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
    return mdb->status;
 }
 
+#endif /* HAVE_BATCH_FILE_INSERT */
+
 /*
  * Escape strings so that PostgreSQL is happy on COPY
  *
index c46ce6c195a65b1e8e9bc55869d14ae5bf74e5a5..7fde314feeb4890945e64389d7bba4d58df8d9d7 100644 (file)
@@ -3,6 +3,10 @@
 General:
 07Sep07
 kes  Add ./configure search in qwt-qt4 for qwt package
+kes  Apply Martin Simmons patch that should turn off the new API usage
+     when batch insert is turned off allowing building on older
+     PostgreSQLs.
+
 Release Version 2.2.2
 04Sep07
 ebl  Detect if new PosgreSQL batch insert API is present.