Lines Matching refs:param
78 static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in pdo_sqlite_stmt_param_hook() argument
91 if (param->is_param) { in pdo_sqlite_stmt_param_hook()
93 if (param->paramno == -1) { in pdo_sqlite_stmt_param_hook()
94 param->paramno = sqlite3_bind_parameter_index(S->stmt, ZSTR_VAL(param->name)) - 1; in pdo_sqlite_stmt_param_hook()
97 switch (PDO_PARAM_TYPE(param->param_type)) { in pdo_sqlite_stmt_param_hook()
102 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
110 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
111 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
113 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
116 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
122 if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
126 if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
135 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
136 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
138 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
152 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
161 if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1, in pdo_sqlite_stmt_param_hook()
171 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
172 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
174 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
177 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()