|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-12-11 06:57 UTC] rapha_thioliere at yahoo dot fr
Description:
------------
I want to use the option 'i5_decimal_sep' of the function db2_connect.
My version of the dll ibm_db2 is 1.6.5
I have the following message : Incorrect option setting passed
I don't understand why ?
Thanks for your help.
Raphael
Reproduce code:
---------------
$option = array("AUTOCOMMIT" => DB2_AUTOCOMMIT_OFF, "i5_decimal_sep" => DB2_I5_SEP_PERIOD);
$var_connexion1 = db2_connect("test", "test", "test", $option);
Expected result:
----------------
I want to work with a point as decimal separator ant not a comma
Actual result:
--------------
Notice: Use of undefined constant DB2_I5_SEP_PERIOD - assumed 'DB2_I5_SEP_PERIOD'
Warning: db2_connect() [function.db2-connect]: Incorrect option setting passed in in
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
Hello, Is there a workaround for this ? I work on WAMP, and I have exactly the same issue : --CODE $options = array("i5_decimal_sep" => DB2_I5_SEP_PERIOD); $conndb2 = db2_connect($GLOBALS['base'],$GLOBALS['user'],$GLOBALS['pass'],$options) or die('Failed to connect user '.$GLOBALS['user'].' on '.$GLOBALS['base']); --ERROR Notice: Use of undefined constant DB2_I5_SEP_PERIOD - assumed 'DB2_I5_SEP_PERIOD'