Fix sqlite backend : - do not access invalid memory from sqlite. - fix BLOBs.
Fix sqlite backend :
- do not access invalid memory from sqlite.
- fix BLOBs.

It has been needed to have an internal array of strings and blobs as 
sqlite will invalidate pointers at each sqlite3_step.

Until now, using strings was "working" because sqlite's internal memory 
didnt freed/replace the data before we use it. This is luck.

This is explained at http://www.sqlite.org/c3ref/column_blob.html :
The pointers returned are valid until a type conversion occurs as 
described above, or until sqlite3_step() or sqlite3_reset() or 
sqlite3_finalize() is called. The memory space used to hold strings and 
BLOBs is freed automatically. Do not pass the pointers returned 
sqlite3_column_blob(), sqlite3_column_text(), etc. into sqlite3_free().


SVN revision: 83168

gfriloux/esskyuehl,expertisesolutions/esskyuehl,gfriloux/esskyuehl,carloslack/esskyuehl,carloslack/esskyuehl,carloslack/esskyuehl,expertisesolutions/esskyuehl,expertisesolutions/esskyuehl