On Thu, 16 Oct 2008 08:23:10 +0000 (GMT), Alberto Tellaeche
<[EMAIL PROTECTED]> wrote:
>int ActualizarBBDDAlumnos(char *dni, float nota)
>{
> char *errorMsg;
>
> char *orden_SQL = sqlite3_mprintf("update ALUMNO set nota=%0.1f where
> dni=%Q;",nota,dni);
> sqlite3_exec(db,orden_SQL,0,0,&errorMsg);
> sqlite3_free(errorMsg);
> sqlite3_free(orden_SQL);
> return(0);
>}
"db" appears to be a global. Are you certain that is has been properly
initialized with sqlite3_open(), sqlite3_open16() or sqlite3_open_v2()
before calling this function?
JAB
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users