What does strlen() tell you on the XML before you put it in the table?
Can you boil all this down to one record in a table, and some code so we can all see what's going on? Do a .dump of the table and post the code. See if you can reproduce it in a simple example. Michael D. Black Senior Scientist Advanced Analytics Directorate Advanced GEOINT Solutions Operating Unit Northrop Grumman Information Systems ________________________________ From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Jacob A. Camp [jacob.c...@mastercam.com] Sent: Wednesday, December 21, 2011 9:41 AM To: 'General Discussion of SQLite Database' Subject: EXT :Re: [sqlite] sqlite3_column_text() returning partial results I have a line of code that executes that line: const unsigned char * temp2 = sqlite3_column_text(state, 0); This queries the database and after the call is complete I pass this value to another function. This function then fails because temp2 points to a location that contains the incomplete text. I then can view this text using my debugger and I can see that the value has been clipped and the XML is invalid. Trying to access memory locations outside whatever is allocated by the return of sqlite3_column_text sounds like it would result in undefined behavior? sqlite3_column_bytes returns 8960 if that's helpful. -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Igor Tandetnik Sent: Wednesday, December 21, 2011 10:29 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] sqlite3_column_text() returning partial results Jake <jacob.c...@mastercam.com> wrote: > For the previous post asking what occurs after 2030, there's nothing What do you mean, nothing? What exactly happens when you try to access p[2030]? > because the > returned value is only allocated for those characters. What makes you believe this? -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mastercam.com<http://www.mastercam.com/> ********************************************************************** _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users