php-src/ext/pdo_mysql/tests
Ahmed Abdou 2fe2e5b48f Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
PDO driver constructors are throwing PdoException without setting
errorInfo, so create a new reusable function that throws exceptions
for PDO and will also set the errorInfo. Use this function in
pdo_mysql, pdo_sqlite, and pdo_pgsql.
2020-08-11 17:12:48 +02:00
..
bug41125.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug44327.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug46292.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug53551.phpt
bug53782.phpt
bug54929.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug63176.phpt
bug66141.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug68371.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug70272.phpt Fixed bug #70272 (Segfault in pdo_mysql) 2015-08-18 18:33:07 +08:00
bug70389.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug70862.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug71569.phpt Fix test description 2016-02-13 17:46:24 +01:00
bug75177.phpt Fixed bug #75018, fixed bug #75177 2017-09-13 14:10:30 +02:00
bug77289.phpt Fixed bug #77289 2019-01-09 09:50:26 +01:00
bug79596.phpt Fix #79596: MySQL FLOAT truncates to int some locales 2020-05-15 09:09:41 +02:00
bug_33689.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
bug_37445.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug_38546.phpt Enable STRICT_TRANS_TABLES in new test 2019-06-07 10:57:09 +02:00
bug_39483.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug_39858.phpt Merge branch 'PHP-7.2' into PHP-7.3 2019-10-07 09:17:29 +02:00
bug_41125.phpt
bug_41698.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug_41997.phpt Merge branch 'PHP-7.2' into PHP-7.3 2019-10-07 09:17:29 +02:00
bug_42499.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
bug_43371.phpt
bug_44454.phpt
bug_44707.phpt Merge branch 'PHP-7.2' into PHP-7.3 2019-06-07 09:49:01 +02:00
bug_45120.phpt
bug_50323.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug_51670.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
bug_61207.phpt
bug_61411.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_61755.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_64705.phpt Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails 2020-08-11 17:12:48 +02:00
bug_74376.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_pecl_7976.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_pecl_12925.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
common.phpt
config.inc
last_insert_id.phpt
mysql_pdo_test.inc Make MySQLPDOTest::extractVersion() more liberal 2019-04-28 23:48:27 +02:00
PDO_getAvaliableDrivers.phpt Add and fix SKIPIF sections 2018-02-04 17:26:37 +01:00
pdo_mysql___construct_ini.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql___construct_options_libmysql.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql___construct_options.phpt security fix - by default 'local infile' is disabled: 2019-02-11 18:04:51 +01:00
pdo_mysql___construct_uri.phpt Fix tests 2019-04-29 09:04:33 +02:00
pdo_mysql___construct.phpt Updated tests to reflect exception class changes. 2015-05-16 16:49:14 -05:00
pdo_mysql_attr_autocommit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_case.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_client_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_connection_status.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
pdo_mysql_attr_driver_name.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_errmode.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_fetch_table_names.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_attr_init_command.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_attr_max_buffer_size.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_multi_statements.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_oracle_nulls.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_prefetch.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_server_info.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_server_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_statement_class.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_begintransaction.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_bit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_class_constants.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
pdo_mysql_commit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_connect_attr.phpt fix the problem for connect_attr, set db condition, and add a new attribute _server_host 2019-08-20 13:31:58 +02:00
pdo_mysql_connect_charset.phpt Convert CRLF line endings to LF 2018-10-13 11:21:27 +02:00
pdo_mysql_errorcode.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_errorinfo.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_exec_ddl.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_exec_load_data.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_exec_select.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_exec.phpt Make MySQLPDOTest::extractVersion() more liberal 2019-04-28 23:48:27 +02:00
pdo_mysql_fetch_both.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_get_attribute.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_interface.phpt
pdo_mysql_last_insert_id.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_local_infile_default_off.phpt security fix - by default 'local infile' is disabled: 2019-02-11 18:04:51 +01:00
pdo_mysql_local_infile_set_on.phpt security fix - by default 'local infile' is disabled: 2019-02-11 18:04:51 +01:00
pdo_mysql_multi_stmt_nextrowset.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_param_str_natl.phpt Add PDO parameter types for national character set strings 2017-03-20 18:25:50 -04:00
pdo_mysql_pconnect.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_phpinfo.phpt
pdo_mysql_prepare_emulated_anonymous.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_emulated_placeholder_everywhere.phpt
pdo_mysql_prepare_emulated.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_load_data.phpt Merge branch 'PHP-7.1' 2016-12-15 09:32:26 +01:00
pdo_mysql_prepare_match_against.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_native_clear_error.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_prepare_native_column.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_prepare_native_dup_named_placeholder.phpt
pdo_mysql_prepare_native_mixed_style.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_prepare_native_named_placeholder.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_native_placeholder_everywhere.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_prepare_native.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_quote.phpt Add PDO parameter types for national character set strings 2017-03-20 18:25:50 -04:00
pdo_mysql_rollback.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_bindcolumn.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_bindparam_types.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_bindparam.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_bindvalue.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_blobfromsteam.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_blobs.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_closecursor_empty.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_closecursor.phpt
pdo_mysql_stmt_columncount.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_errorcode.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_stmt_errorinfo.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_fetch_non_select.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_fetch_serialize_simple.phpt Cleanup tests version checks 2016-11-20 14:16:50 +01:00
pdo_mysql_stmt_fetch_serialize.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_fetchobject.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_getcolumnmeta.phpt Merge branch 'PHP-7.2' into PHP-7.3 2018-09-19 12:31:55 +02:00
pdo_mysql_stmt_multiquery.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_nextrowset.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_rowcount.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_unbuffered_2050.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_stmt_variable_columncount.phpt Merge branch 'PHP-7.2' into PHP-7.3 2019-10-07 09:17:29 +02:00
pdo_mysql_subclass.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_types_zerofill.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_types.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pecl_bug_5200.phpt
pecl_bug_5780.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pecl_bug_5802.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
README
show_tables.phpt
skipif.inc Sync leading and final newlines in source code files 2018-10-14 12:51:01 +02:00
table.inc Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00

You must set the following environment variables to run the tests:

  PDO_MYSQL_TEST_DSN  - DSN
    For example: mysql:dbname=test;host=localhost;port=3306

  PDO_MYSQL_TEST_HOST     - database host
  PDO_MYSQL_TEST_DB      - database (schema) name
  PDO_MYSQL_TEST_SOCKET  - database server socket
  PDO_MYSQL_TEST_ENGINE  - storage engine to use
  PDO_MYSQL_TEST_USER    - database user
  PDO_MYSQL_TEST_PASS    - database user password
  PDO_MYSQL_TEST_CHARSET - database charset

  NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is
  part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example,
  for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.