Hi, if sqlite3_exec() returns an error code (i.e other than SQLITE_OK), is it guaranteed that the "errmsg" argument always contains the error message string. Or should i compare the value of errmsg with NULL before printing the value?
E.g: ret = sqlite3_exec(db, sql, NULL, NULL, &err_msg); if (ret != SQLITE_OK) { if (err_msg != NULL) { /* is this checking necessary? */ /* print err_msg */ sqlite3_free(err_msg); } } Regards, chandan _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users