* ECPG.pgm

* testECPG.m  
        * testMySQL.m 
        * testSQLite.m        
          use PRIuPTR to NSLog NSUIntegers

OK Richard



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@36111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2013-02-11 16:05:47 +00:00
parent a4ec0e036b
commit da909810ee
5 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2013-02-11 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* ECPG.pgm
* testECPG.m
* testMySQL.m
* testSQLite.m
use PRIuPTR to NSLog NSUIntegers
2013-01-31 Richard Frith-Macdonald <rfm@gnu.org> 2013-01-31 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.m: Check for -disconnect being called when inside a * SQLClient.m: Check for -disconnect being called when inside a

View file

@ -111,7 +111,7 @@ void SQLErrorHandler()
const char *e1 = "Error in transaction processing"; const char *e1 = "Error in transaction processing";
sqlca.sqlcode = 0; // Reset error code 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 if (strncmp(ptr, e0, strlen(e0)) == 0
|| strncmp(ptr, e1, strlen(e1)) == 0) || strncmp(ptr, e1, strlen(e1)) == 0)

View file

@ -109,7 +109,7 @@ main()
if ([records count] != 2) if ([records count] != 2)
{ {
NSLog(@"Expected 2 records but got %u", [records count]); NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]);
} }
else else
{ {

View file

@ -109,7 +109,7 @@ main()
if ([records count] != 2) if ([records count] != 2)
{ {
NSLog(@"Expected 2 records but got %u", [records count]); NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]);
} }
else else
{ {

View file

@ -104,7 +104,7 @@ main()
if ([records count] != 2) if ([records count] != 2)
{ {
NSLog(@"Expected 2 records but got %u", [records count]); NSLog(@"Expected 2 records but got %" PRIuPTR "", [records count]);
} }
else else
{ {