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 */