Lines Matching refs:dbh

112   if (!stmt->dbh) {	\
145 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); in rewrite_name_to_position()
157 …pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "PDO refuses to handle repeating the same :named pa… in rewrite_name_to_position()
163 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); in rewrite_name_to_position()
217 …if (stmt->dbh->native_case != stmt->dbh->desired_case && stmt->dbh->desired_case != PDO_CASE_NATUR… in pdo_stmt_describe_columns()
220 switch (stmt->dbh->desired_case) { in pdo_stmt_describe_columns()
357 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", tmp TSRMLS_CC); in really_register_bound_param()
470 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", NULL TSRMLS_CC); in PHP_METHOD()
522 if (stmt->dbh->alloc_own_columns && !stmt->columns) { in PHP_METHOD()
566 int need_copy = (new_type != PDO_PARAM_ZVAL || stmt->dbh->stringify) ? 1 : 0; in fetch_value()
599 if (stmt->dbh->stringify || new_type == PDO_PARAM_STR) { in fetch_value()
612 } else if (!stmt->dbh->stringify && new_type != PDO_PARAM_STR) { in fetch_value()
640 if (value && !(value_len == 0 && stmt->dbh->oracle_nulls == PDO_NULL_EMPTY_STRING)) { in fetch_value()
674 if (stmt->dbh->stringify) { in fetch_value()
683 if (Z_TYPE_P(dest) == IS_NULL && stmt->dbh->oracle_nulls == PDO_NULL_TO_STRING) { in fetch_value()
783 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "user-supplied class does not have a constructor, u… in do_fetch_class_prepare()
797 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", is_callable_error TSRMLS_CC); in make_callable_ex()
800 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "user-supplied function must be a valid callback" T… in make_callable_ex()
909 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO::FETCH_KEY_PAIR fetch mode requires the result… in do_fetch()
932 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Invalid column index" TSRMLS_CC); in do_fetch()
966 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "No fetch class specified" TSRMLS_CC); in do_fetch()
981 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC); in do_fetch()
994 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "No fetch-into object specified." TSRMLS_CC); in do_fetch()
1011 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "No fetch function specified" TSRMLS_CC); in do_fetch()
1138 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize data" TSRMLS_CC); in do_fetch()
1146 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC); in do_fetch()
1150 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "cannot unserialize class" TSRMLS_CC); in do_fetch()
1167 pdo_raise_impl_error(stmt->dbh, stmt, "22003", "mode is out of range" TSRMLS_CC); in do_fetch()
1179 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC); in do_fetch()
1199 … pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call user-supplied function" TSRMLS_CC); in do_fetch()
1248 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "invalid fetch mode" TSRMLS_CC); in pdo_stmt_verify_mode()
1260 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO::FETCH_FUNC is only allowed in PDOStatement::f… in pdo_stmt_verify_mode()
1267 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO::FETCH_LAZY can't be used with PDOStatement::f… in pdo_stmt_verify_mode()
1274 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO::FETCH_SERIALIZE can only be used together wit… in pdo_stmt_verify_mode()
1278 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "PDO::FETCH_CLASSTYPE can only be used together wit… in pdo_stmt_verify_mode()
1282 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "invalid fetch mode" TSRMLS_CC); in pdo_stmt_verify_mode()
1364 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Could not find user-supplied class" TSRMLS_CC); in PHP_METHOD()
1445 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "ctor_args must be either NULL or an array" TSRMLS_… in PHP_METHOD()
1456 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Invalid class name (should be a string)" TSRMLS_CC… in PHP_METHOD()
1462 … pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not find user-specified class" TSRMLS_CC); in PHP_METHOD()
1477 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "no fetch function specified" TSRMLS_CC); in PHP_METHOD()
1501 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Third parameter not allowed for PDO::FETCH_COLUMN"… in PHP_METHOD()
1508 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Extraneous additional parameters" TSRMLS_CC); in PHP_METHOD()
1595 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "Columns/Parameters are 1-based" TSRMLS_CC); in register_bound_param()
1633 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "Columns/Parameters are 1-based" TSRMLS_CC); in PHP_METHOD()
1713 if (stmt->dbh->methods->fetch_err) { in PHP_METHOD()
1714 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value TSRMLS_CC); in PHP_METHOD()
1753 …pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "This driver doesn't support setting attributes" TS… in PHP_METHOD()
1785 pdo_raise_impl_error(stmt->dbh, stmt, "IM001", in PHP_METHOD()
1801 pdo_raise_impl_error(stmt->dbh, stmt, "IM001", in PHP_METHOD()
1837 pdo_raise_impl_error(stmt->dbh, stmt, "42P10", "column number must be non-negative" TSRMLS_CC); in PHP_METHOD()
1842 pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "driver doesn't support meta data" TSRMLS_CC); in PHP_METHOD()
1900 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "mode must be an integer" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
1928 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "fetch mode doesn't allow any extra arguments" TSRM… in pdo_stmt_setup_fetch_mode()
1936 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "fetch mode requires the colno argument" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
1938 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "colno must be an integer" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
1949 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "fetch mode doesn't allow any extra arguments" TSRM… in pdo_stmt_setup_fetch_mode()
1956 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "fetch mode requires the classname argument" TSRMLS… in pdo_stmt_setup_fetch_mode()
1958 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "too many arguments" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
1960 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "classname must be a string" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
1974 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode()
1980 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "ctor_args must be either NULL or an array" TSRMLS_… in pdo_stmt_setup_fetch_mode()
1998 …pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "fetch mode requires the object parameter" TSRMLS_C… in pdo_stmt_setup_fetch_mode()
2000 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "object must be an object" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
2007 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode()
2022 pdo_raise_impl_error(stmt->dbh, stmt, "22003", "Invalid fetch mode specified" TSRMLS_CC); in pdo_stmt_setup_fetch_mode()
2088 …pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "driver does not support multiple rowsets" TSRMLS_C… in PHP_METHOD()
2236 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "property queryString is read only" TSRMLS_CC); in dbstmt_prop_write()
2249 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "property queryString is read only" TSRMLS_CC); in dbstmt_prop_delete()
2276 if (!stmt->dbh) { in dbstmt_method_get()
2281 if (!stmt->dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_STMT]) { in dbstmt_method_get()
2282 if (!pdo_hash_methods(stmt->dbh, in dbstmt_method_get()
2284 || !stmt->dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_STMT]) { in dbstmt_method_get()
2289 if (zend_hash_find(stmt->dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_STMT], in dbstmt_method_get()
2407 if (stmt->dbh) { in free_statement()
2408 php_pdo_dbh_delref(stmt->dbh TSRMLS_CC); in free_statement()