mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
DBD::SQLite: silenced warnings
This commit is contained in:
parent
2cb3b63b29
commit
d003fb74dd
2 changed files with 3 additions and 3 deletions
4
dbdimp.c
4
dbdimp.c
|
@ -565,7 +565,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
|
|||
}
|
||||
|
||||
if (sqlite3_get_autocommit(imp_dbh->db)) {
|
||||
char *sql = sqlite3_sql(imp_sth->stmt);
|
||||
const char *sql = sqlite3_sql(imp_sth->stmt);
|
||||
if ((sql[0] == 'B' || sql[0] == 'b') &&
|
||||
(sql[1] == 'E' || sql[1] == 'e') &&
|
||||
(sql[2] == 'G' || sql[2] == 'g') &&
|
||||
|
@ -585,7 +585,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
|
|||
}
|
||||
}
|
||||
else if (DBIc_is(imp_dbh, DBIcf_BegunWork)) {
|
||||
char *sql = sqlite3_sql(imp_sth->stmt);
|
||||
const char *sql = sqlite3_sql(imp_sth->stmt);
|
||||
if (((sql[0] == 'C' || sql[0] == 'c') &&
|
||||
(sql[1] == 'O' || sql[1] == 'o') &&
|
||||
(sql[2] == 'M' || sql[2] == 'm') &&
|
||||
|
|
2
dbdimp.h
2
dbdimp.h
|
@ -45,7 +45,7 @@ struct imp_sth_st {
|
|||
int nrow;
|
||||
AV *params;
|
||||
AV *col_types;
|
||||
char *unprepared_statements;
|
||||
const char *unprepared_statements;
|
||||
};
|
||||
|
||||
#define dbd_init sqlite_init
|
||||
|
|
Loading…
Add table
Reference in a new issue