Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program?

2009-06-30 Thread freshie2004-sqlite
characters of varchar() corrupted when SELECTing from a C++ program? On 30/06/2009 2:56 PM, freshie2004-sql...@yahoo.com.au wrote: > printf("testValue=(%s)\n"); I've always been afraid to use those new-fangled mind-reading C comp

Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program?

2009-06-30 Thread John Machin
On 30/06/2009 2:56 PM, freshie2004-sql...@yahoo.com.au wrote: > printf("testValue=(%s)\n"); I've always been afraid to use those new-fangled mind-reading C compilers lest they were easily shocked ;-) ___ sqlite-users mailing list

Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program?

2009-06-29 Thread freshie2004-sqlite
__ From: pierr <pierr.c...@gmail.com> To: sqlite-users@sqlite.org Sent: Tuesday, 30 June, 2009 2:42:16 PM Subject: Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program? uralmazamog wrote: > > Greetings, > > maybe it's just m

Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program?

2009-06-29 Thread pierr
uralmazamog wrote: > > Greetings, > > maybe it's just me being stupid, I'll best jump right to the code: > > sqlite3_open_v2( "testdat", sqlDB, SQLITE_OPEN_READWRITE | > SQLITE_OPEN_CREATE, NULL ); > sqlite3_prepare_v2( sqlDB, "SELECT b FROM whee WHERE a='bing';", -1, > sqlStat, NULL ); >

Re: [sqlite] first few characters of varchar() corrupted when SELECTing from a C++ program?

2009-06-27 Thread Igor Tandetnik
uralmaza...@pop3.ru wrote: > sqlite3_open_v2( "testdat", sqlDB, SQLITE_OPEN_READWRITE | > SQLITE_OPEN_CREATE, NULL ); > sqlite3_prepare_v2( sqlDB, "SELECT b FROM whee WHERE a='bing';", -1, > sqlStat, NULL ); > sqlite3_step( sqlStat ); > const unsigned char *testValue = sqlite3_column_text(