mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-08 06:38:12 -04:00
DBD::SQLite: clarify which sql is being executed while tracing
This commit is contained in:
parent
6f1677bc46
commit
1a976e892b
1 changed files with 1 additions and 1 deletions
2
dbdimp.c
2
dbdimp.c
|
@ -435,7 +435,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
|
||||||
int num_params = DBIc_NUM_PARAMS(imp_sth);
|
int num_params = DBIc_NUM_PARAMS(imp_sth);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
sqlite_trace(sth, imp_sth, 3, "execute");
|
sqlite_trace(sth, imp_sth, 3, form("executing %s", sqlite3_sql(imp_sth->stmt)));
|
||||||
|
|
||||||
if (!DBIc_ACTIVE(imp_dbh)) {
|
if (!DBIc_ACTIVE(imp_dbh)) {
|
||||||
sqlite_error(sth, -2, "attempt to execute on inactive database handle");
|
sqlite_error(sth, -2, "attempt to execute on inactive database handle");
|
||||||
|
|
Loading…
Add table
Reference in a new issue