mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
basic macro replacements, all at once
This commit is contained in:
parent
1e8273964f
commit
63d3f0b844
230 changed files with 4380 additions and 4380 deletions
|
@ -117,13 +117,13 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
return 1;
|
||||
}
|
||||
} else {
|
||||
convert_to_long(parameter);
|
||||
convert_to_int(parameter);
|
||||
#if LONG_MAX > 2147483647
|
||||
if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) {
|
||||
if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_IVAL_P(parameter))) {
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) {
|
||||
if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_IVAL_P(parameter))) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
@ -159,7 +159,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
|
||||
if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1,
|
||||
Z_STRVAL_P(parameter),
|
||||
Z_STRLEN_P(parameter),
|
||||
Z_STRSIZE_P(parameter),
|
||||
SQLITE_STATIC)) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_d
|
|||
convert_to_string(parameter);
|
||||
if (SQLITE_OK == sqlite3_bind_text(S->stmt, param->paramno + 1,
|
||||
Z_STRVAL_P(parameter),
|
||||
Z_STRLEN_P(parameter),
|
||||
Z_STRSIZE_P(parameter),
|
||||
SQLITE_STATIC)) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue