mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ported pdo and pdo_sqlite
This commit is contained in:
parent
c517d6d853
commit
92269d25a3
7 changed files with 165 additions and 164 deletions
|
@ -118,7 +118,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
}
|
||||
} else {
|
||||
convert_to_int(parameter);
|
||||
#if LONG_MAX > 2147483647
|
||||
#if PHP_INT_MAX > 2147483647
|
||||
if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_IVAL_P(parameter))) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
}
|
||||
|
||||
static int pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt,
|
||||
enum pdo_fetch_orientation ori, long offset TSRMLS_DC)
|
||||
enum pdo_fetch_orientation ori, php_int_t offset TSRMLS_DC)
|
||||
{
|
||||
pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
|
||||
int i;
|
||||
|
@ -259,7 +259,7 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC)
|
||||
static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, php_uint_t *len, int *caller_frees TSRMLS_DC)
|
||||
{
|
||||
pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
|
||||
if (!S->stmt) {
|
||||
|
@ -288,7 +288,7 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi
|
|||
}
|
||||
}
|
||||
|
||||
static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_value TSRMLS_DC)
|
||||
static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, php_int_t colno, zval *return_value TSRMLS_DC)
|
||||
{
|
||||
pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
|
||||
const char *str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue