Author: turnstep
Date: Wed Apr  7 13:49:50 2010
New Revision: 13895

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
Create dummy functions for lo_import_with_oid() for pre-8.4 versions.
See bug #56363


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Wed Apr  7 13:49:50 2010
@@ -56,6 +56,15 @@
 
 #endif
 
+#if PGLIBVERSION < 80400
+
+Oid lo_import_with_oid (PGconn *conn, char *filename, unsigned int lobjId);
+Oid lo_import_with_oid (PGconn *conn, char *filename, unsigned int lobjId) {
+       croak ("Cannot use lo_import_with_oid unless compiled against Postgres 
8.4 or later");
+}
+
+#endif
+
 #ifndef PGErrorVerbosity
 typedef enum
        {

Reply via email to