src/cats/sql.c
int db_list_handler(void *ctx, int num_fields, char **row) 
{ 
   db_list_ctx *lctx = (db_list_ctx *)ctx; 
   if (num_fields == 1 && row[0]) { 
      lctx->add(row[0]); 
   } 
   return 0; 
}
/* 
 * Use to build a comma separated list of values from a query. "10,20,30" 
 */
Use to build a comma separated list of values from a query.
Use to build a comma separated list of values from a query .
int db_list_handler(void *ctx, int num_fields, char **row) 
{ 
   db_list_ctx *lctx = (db_list_ctx *)ctx; 
   if (num_fields == 1 && row[0]) { 
      lctx->add(row[0]); 
   } 
   return 0; 
}
int db_list_handler ( void * ctx , int num_fields , char * * row ) { db_list_ctx * lctx = ( db_list_ctx * ) ctx ; if ( num_fields == 1 && row [ 0 ] ) { lctx -> add ( row [ 0 ] ) ; } return 0 ; }
Use to build a comma separated list of values from a query.
Use to build a comma separated list of values from a query .