diff --git a/ChangeLog b/ChangeLog index cf310ef..58363f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-02-11 Sebastian Reitenbach + * ECPG.pgm + * testECPG.m + * testMySQL.m + * testSQLite.m + use PRIuPTR to NSLog NSUIntegers + 2013-01-31 Richard Frith-Macdonald * SQLClient.m: Check for -disconnect being called when inside a diff --git a/ECPG.pgm b/ECPG.pgm index 3cc06d5..c16a98d 100644 --- a/ECPG.pgm +++ b/ECPG.pgm @@ -111,7 +111,7 @@ void SQLErrorHandler() const char *e1 = "Error in transaction processing"; sqlca.sqlcode = 0; // Reset error code - NSLog (@"Raising an exception, %ld, %s", code, sqlca.sqlerrm.sqlerrmc); + NSLog (@"Raising an exception, %d, %s", code, sqlca.sqlerrm.sqlerrmc); if (strncmp(ptr, e0, strlen(e0)) == 0 || strncmp(ptr, e1, strlen(e1)) == 0) diff --git a/testECPG.m b/testECPG.m index 64a118c..c6aaeae 100644 --- a/testECPG.m +++ b/testECPG.m @@ -109,7 +109,7 @@ main() if ([records count] != 2) { - NSLog(@"Expected 2 records but got %u", [records count]); + NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]); } else { diff --git a/testMySQL.m b/testMySQL.m index 2e39ee1..8728e25 100644 --- a/testMySQL.m +++ b/testMySQL.m @@ -109,7 +109,7 @@ main() if ([records count] != 2) { - NSLog(@"Expected 2 records but got %u", [records count]); + NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]); } else { diff --git a/testSQLite.m b/testSQLite.m index b860e9e..b21509d 100644 --- a/testSQLite.m +++ b/testSQLite.m @@ -104,7 +104,7 @@ main() if ([records count] != 2) { - NSLog(@"Expected 2 records but got %u", [records count]); + NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]); } else {