Lines Matching refs:param
75 static int pdo_sqlite_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *param, in pdo_sqlite_stmt_param_hook() argument
88 if (param->is_param) { in pdo_sqlite_stmt_param_hook()
90 if (param->paramno == -1) { in pdo_sqlite_stmt_param_hook()
91 param->paramno = sqlite3_bind_parameter_index(S->stmt, ZSTR_VAL(param->name)) - 1; in pdo_sqlite_stmt_param_hook()
94 switch (PDO_PARAM_TYPE(param->param_type)) { in pdo_sqlite_stmt_param_hook()
99 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
107 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
108 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
110 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
113 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
119 if (SQLITE_OK == sqlite3_bind_int64(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
123 if (SQLITE_OK == sqlite3_bind_int(S->stmt, param->paramno + 1, Z_LVAL_P(parameter))) { in pdo_sqlite_stmt_param_hook()
132 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
133 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
135 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
149 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
160 if (SQLITE_OK == sqlite3_bind_blob(S->stmt, param->paramno + 1, in pdo_sqlite_stmt_param_hook()
170 if (Z_ISREF(param->parameter)) { in pdo_sqlite_stmt_param_hook()
171 parameter = Z_REFVAL(param->parameter); in pdo_sqlite_stmt_param_hook()
173 parameter = ¶m->parameter; in pdo_sqlite_stmt_param_hook()
176 if (sqlite3_bind_null(S->stmt, param->paramno + 1) == SQLITE_OK) { in pdo_sqlite_stmt_param_hook()
183 if (SQLITE_OK == sqlite3_bind_text(S->stmt, param->paramno + 1, in pdo_sqlite_stmt_param_hook()