php-src/ext/dbx/tests/dbx_test.p
Marc Boeren b5783184ea Not happy with the hack to handle the uppercase fieldnames that oracle
returns. Changed the dbx_oci8 behaviour to return lowercase instead,
which is also a hack but at least it makes it much easier for users
to create portable apps (Mc).
# also, I prefer lowercase :-)
2002-10-24 14:16:28 +00:00

65 lines
1.7 KiB
OpenEdge ABL

<?php
// set the $connection to match your test-database setup
// (possibly change the rest of the settings too)
// e.g. $connection = DBX_MYSQL;
$connection = NULL;
switch ($connection) {
case DBX_MYSQL:
$module=DBX_MYSQL;
$host="";
$database="dbx_test";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="mysql";
break;
case DBX_MSSQL:
$module=DBX_MSSQL;
$host="HOLLY";
$database="dbx_test";
$username="";
$password="";
$module_name="mssql";
break;
case DBX_ODBC:
$module=DBX_ODBC;
$host="localhost";
$database="dbx_test_mysql"; // "dbx_test_access";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="odbc";
break;
case DBX_PGSQL:
$module=DBX_PGSQL;
$host="";
$database="dbx_test";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="pgsql";
break;
case DBX_FBSQL:
$module=DBX_FBSQL;
$host="";
$database="dbx_test";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="fbsql";
break;
case DBX_OCI8:
$module=DBX_OCI8;
$host="";
$database="dbx_test";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="oci8";
break;
case DBX_SYBASECT:
$module=DBX_SYBASECT;
$host="threesyb";
$database="dbx_test";
$username="dbx_testuser";
$password="dbx_testpassword";
$module_name="sybase_ct";
break;
}
?>