Lines Matching refs:param
74 static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in pdo_sqlite_stmt_param_hook() argument
87 if (param->is_param) { in pdo_sqlite_stmt_param_hook()
89 if (param->paramno == -1) { in pdo_sqlite_stmt_param_hook()
90 param->paramno = sqlite3_bind_parameter_index(S->stmt, ZSTR_VAL(param->name)) - 1; in pdo_sqlite_stmt_param_hook()
93 switch (PDO_PARAM_TYPE(param->param_type)) { in pdo_sqlite_stmt_param_hook()
98 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
106 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
107 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
109 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
112 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
118 if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
122 if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
131 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
132 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
134 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
148 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
159 if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1, in pdo_sqlite_stmt_param_hook()
169 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
170 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
172 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
175 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
182 if (SQLITE_OK == sqlite3_bind_text(S->stmt, param->paramno + 1, in pdo_sqlite_stmt_param_hook()