Re: [sqlite] Odd issue when SELECT querying

2008-01-30 Thread David Hautbois
Thanks all ! I will receive a C book tomorrow. I need it. David. James Dennett wrote: David Hautbois wrote: Hi I have an odd issue. My function : char * get_config_value (sqlite3 * db, char * config_name) { [...]

RE: [sqlite] Odd issue when SELECT querying

2008-01-30 Thread James Dennett
David Hautbois [mailto:[EMAIL PROTECTED] wrote: > > I found the solution : > I replaced this line : > configvalue = (char *) sqlite3_column_text(stmt, 0); > by > configvalue = g_strdup((gchar *) sqlite3_column_text(stmt, 0)); > > and the configvalue type : gchar > > Now it works !! > > A

Re: [sqlite] Odd issue when SELECT querying

2008-01-30 Thread David Hautbois
I found the solution : I replaced this line : configvalue = (char *) sqlite3_column_text(stmt, 0); by configvalue = g_strdup((gchar *) sqlite3_column_text(stmt, 0)); and the configvalue type : gchar Now it works !! A newbie error... David. David Hautbois wrote: Hi I have an odd issue. My

RE: [sqlite] Odd issue when SELECT querying

2008-01-30 Thread James Dennett
David Hautbois wrote: > Hi > I have an odd issue. > > > My function : > > char * get_config_value (sqlite3 * db, char * config_name) { [...] > configvalue = (char *) sqlite3_column_text(stmt, 0); [...] > return