mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD::SQLite: tracer should use sqlite_trace for clarity
This commit is contained in:
parent
8e5e323bd2
commit
ba00282533
1 changed files with 1 additions and 4 deletions
5
dbdimp.c
5
dbdimp.c
|
@ -73,10 +73,7 @@ sqlite_db_login(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *user, char *pas
|
||||||
int retval;
|
int retval;
|
||||||
char *errmsg = NULL;
|
char *errmsg = NULL;
|
||||||
|
|
||||||
if ( DBIc_TRACE_LEVEL(imp_dbh) >= 3 ) {
|
sqlite_trace(dbh, (imp_xxh_t*)imp_dbh, 3, "login '%s' (version %s)\n", dbname, sqlite3_version);
|
||||||
PerlIO_printf(DBIc_LOGPIO(imp_dbh), " login '%s' (version %s)\n",
|
|
||||||
dbname, sqlite3_version);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((retval = sqlite3_open(dbname, &(imp_dbh->db))) != SQLITE_OK ) {
|
if ((retval = sqlite3_open(dbname, &(imp_dbh->db))) != SQLITE_OK ) {
|
||||||
sqlite_error(dbh, (imp_xxh_t*)imp_dbh, retval, (char*)sqlite3_errmsg(imp_dbh->db));
|
sqlite_error(dbh, (imp_xxh_t*)imp_dbh, retval, (char*)sqlite3_errmsg(imp_dbh->db));
|
||||||
|
|
Loading…
Add table
Reference in a new issue