mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Turn "pdo_stmt_methods" into constants.
This commit is contained in:
parent
0f06df310c
commit
0d484172fe
15 changed files with 15 additions and 15 deletions
|
@ -74,7 +74,7 @@ extern int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file,
|
|||
#define pdo_sqlite_error(s) _pdo_sqlite_error(s, NULL, __FILE__, __LINE__)
|
||||
#define pdo_sqlite_error_stmt(s) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__)
|
||||
|
||||
extern struct pdo_stmt_methods sqlite_stmt_methods;
|
||||
extern const struct pdo_stmt_methods sqlite_stmt_methods;
|
||||
|
||||
enum {
|
||||
PDO_SQLITE_ATTR_OPEN_FLAGS = PDO_ATTR_DRIVER_SPECIFIC,
|
||||
|
|
|
@ -352,7 +352,7 @@ static int pdo_sqlite_stmt_cursor_closer(pdo_stmt_t *stmt)
|
|||
return 1;
|
||||
}
|
||||
|
||||
struct pdo_stmt_methods sqlite_stmt_methods = {
|
||||
const struct pdo_stmt_methods sqlite_stmt_methods = {
|
||||
pdo_sqlite_stmt_dtor,
|
||||
pdo_sqlite_stmt_execute,
|
||||
pdo_sqlite_stmt_fetch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue