diff options
author | Timm Friebe <thekid@php.net> | 2004-02-08 23:58:46 +0000 |
---|---|---|
committer | Timm Friebe <thekid@php.net> | 2004-02-08 23:58:46 +0000 |
commit | 06ab4e69db6366e26f857eea0550e1e278bdd9f6 (patch) | |
tree | 242f90e5ffade195076f9921739428c909056588 /ext/sybase_ct | |
parent | 3bf293ff897ebc1a9a734a160d71f7f5e59f61e8 (diff) | |
download | php-git-06ab4e69db6366e26f857eea0550e1e278bdd9f6.tar.gz |
- Made server name and credentials contain something obviously incorrect.
- Made charset parameter default to "iso_1" (fixed "Sybase: Unable to
update character set." warnings which were failing all tests when the
official Sybase libraries were used - FreeTDS ignores this).
Diffstat (limited to 'ext/sybase_ct')
-rw-r--r-- | ext/sybase_ct/tests/test.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/sybase_ct/tests/test.inc b/ext/sybase_ct/tests/test.inc index 1a57bcb877..48aa7d23b3 100644 --- a/ext/sybase_ct/tests/test.inc +++ b/ext/sybase_ct/tests/test.inc @@ -5,9 +5,9 @@ */ // Change if needed - define('HOST', 'php3'); - define('USER', 'news'); - define('PASSWORD', 'stuemper'); + define('HOST', '****'); + define('USER', '****'); + define('PASSWORD', '****'); // {{{ bool sybase_msg_handler(int msgnumber, int severity, int state, int line, string text) // Handles server messages @@ -52,7 +52,7 @@ // Connect to the sybase server using the defines HOST, USER and PASSWORD function sybase_connect_ex($charset= NULL, $appname= NULL) { sybase_min_server_severity(11); // Suppress "changed database context" - if (!($db= sybase_connect(HOST, USER, PASSWORD, $charset, $appname))) { + if (!($db= sybase_connect(HOST, USER, PASSWORD, $charset ? $charset : 'iso_1', $appname))) { die('Connect to '.USER.'@'.HOST.' failed (using password: '.(PASSWORD ? 'yes' : 'no').')'); } return $db; |