[svn:DBD-Pg] r13058 - DBD-Pg/trunk

[email protected]
Newsgroups gmane.comp.db.postgresql.dbdpg.cvs
Message-ID <[email protected]>
Author: turnstep
Date: Tue Jul 14 12:04:32 2009
New Revision: 13058

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
Minor casting


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c	(original)
+++ DBD-Pg/trunk/dbdimp.c	Tue Jul 14 12:04:32 2009
@@ -2307,10 +2307,10 @@
            the insert.
 		*/
 		if (!(currph->bind_type = sql_type_data((int)sql_type))) {
-			croak("Cannot bind param %s: unknown sql_type %ld", name, sql_type);
+			croak("Cannot bind param %s: unknown sql_type %ld", name, (long)sql_type);
 		}
 		if (!(currph->bind_type = pg_type_data(currph->bind_type->type.pg))) {
-			croak("Cannot find a pg_type for %ld", sql_type);
+			croak("Cannot find a pg_type for %ld", (long)sql_type);
 		}
  	}
 	else if (NULL == currph->bind_type) { /* "sticky" data type */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.