@@ -116,13 +116,13 @@ void* sqlite3_get_table_idr(void* db,
116 row = tbl->num_row;
116 row = tbl->num_row;
117 col = tbl->num_col;
117 col = tbl->num_col;
119− for( i=0; i< row; i++){
119+// for( i=0; i< row; i++){
120− for(j=0;j<col; j++){
120+// for(j=0;j<col; j++){
121− printf("%s\n", tbl->table_data[(i+1)*col +j]);
121+// printf("%s\n", tbl->table_data[(i+1)*col +j]);
126 return tbl;
126 return tbl;
@@ -171,7 +171,7 @@ int sqlite3_get_data_type(void* p,const char* tbl_name, int nRow, int nCol){
173 val =sqlite3_column_type(stmt, nCol);
173 val =sqlite3_column_type(stmt, nCol);
174− printf("Type : %d\n", val );
174+ //printf("Type : %d\n", val );
176 rc =sqlite3_finalize(stmt);
176 rc =sqlite3_finalize(stmt);
177 if( rc != SQLITE_OK){
177 if( rc != SQLITE_OK){
@@ -210,7 +210,6 @@ int sqlite3_get_val_int(void* p,const char* tbl_name, int nRow, int nCol){
212 val =sqlite3_column_int(stmt, nCol);
212 val =sqlite3_column_int(stmt, nCol);
213− printf("int_val : %d\n", val );
214 rc =sqlite3_finalize(stmt);
213 rc =sqlite3_finalize(stmt);
215 if( rc != SQLITE_OK){
214 if( rc != SQLITE_OK){
216 printf("Couldnt finalize:\n");
215 printf("Couldnt finalize:\n");
@@ -248,10 +247,11 @@ const unsigned char* sqlite3_get_val_text(void* p,const char* tbl_name,int nRow,
250+ for ( i=0; i< 100000000; i++){
251− array =(unsigned char *) malloc(1000*sizeof(char));
251+ array =(unsigned char *) GC_malloc(1000*sizeof(char));
252 text_val =sqlite3_column_text(stmt, nCol);
253 text_val =sqlite3_column_text(stmt, nCol);
253 memcpy(array, text_val, sizeof(text_val));
254 memcpy(array, text_val, sizeof(text_val));
254− printf("text_val : %s\n", text_val );
255 rc =sqlite3_finalize(stmt);
255 rc =sqlite3_finalize(stmt);
256 if( rc != SQLITE_OK){
256 if( rc != SQLITE_OK){
257 printf("Couldn't finalize.\n");
257 printf("Couldn't finalize.\n");
@@ -261,6 +261,7 @@ const unsigned char* sqlite3_get_val_text(void* p,const char* tbl_name,int nRow,
264float sqlite3_get_float(void* p,const char* tbl_name, int nRow, int nCol){
265float sqlite3_get_float(void* p,const char* tbl_name, int nRow, int nCol){
266 DBinfo* dbi =(DBinfo*) p;
267 DBinfo* dbi =(DBinfo*) p;
@@ -290,7 +291,7 @@ float sqlite3_get_float(void* p,const char* tbl_name, int nRow, int nCol){
291 double_val =sqlite3_column_double(stmt, nCol);
292 double_val =sqlite3_column_double(stmt, nCol);
292 float float_val =(float)double_val;
293 float float_val =(float)double_val;
293− printf("float_val %f\n", float_val);
294+ //printf("float_val %f\n", float_val);
294 rc =sqlite3_finalize(stmt);
295 rc =sqlite3_finalize(stmt);
295 if( rc != SQLITE_OK){
296 if( rc != SQLITE_OK){
296 printf("Couldn't finalize.\n");
297 printf("Couldn't finalize.\n");