mirror of
https://github.com/php/php-src.git
synced 2024-10-13 20:42:38 +00:00
b5783184ea
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 :-)
65 lines
1.7 KiB
OpenEdge ABL
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;
|
|
}
|
|
|
|
?> |