PHP 4.0 Bug #9295 Updated: Error passing DATE to OpenLink

From: Date: Mon, 02 Apr 2001 00:02:22 +0000
Subject: PHP 4.0 Bug #9295 Updated: Error passing DATE to OpenLink
Groups: php.dev 
Request: Send a blank email to php-dev+get-50525@lists.php.net to get a copy of this message
ID: 9295 Updated by: kalowsky Reported By: k.watkins@ru.ac.za Old-Status: Open Status: Feedback Bug Type: ODBC related Assigned To: Comments: which version of OpenLink are you using? Supposedly the latest OpenLink has been better optimized for use with PHP. Please try updating to that (if you haven't already) and see if this problem still persists for you... Previous Comments: --------------------------------------------------------------------------- [2001-02-16 05:47:11] k.watkins@ru.ac.za Reproducing the problem: ------------------------ odbc_do($cid, 'Select * from table where datefield=DATE("16/02/2001")'); produces: Warning: SQL error: [unixODBC][OpenLink][ODBC][Driver]Option Value Changed, SQL state [?Ã÷Ø in SQLExecDirect in /www/data/datetest.php on line 12 Entering the query from the OpenLink odbctest program gives the desired result. Using DATE(02,16,2001) gives the same result. I've tried with php configured to use both iodbc and unixODBC. Both produce the same result. Queries not involving DATE() are working on the same setup. My configuration: ----------------- './configure' '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' '--with-system-regex' '--with-config-file-path=/usr/local/etc' '--disable-debug' '--enable-track-vars' '--without-gd' '--disable-pear' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--with-unixODBC' '--with-openlink' '--with-magic-quotes' '--enable-trans-sid' '--prefix=/usr/local' 'i386--freebsd4.2' I'm running apache 1.3.14 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9295&edit=2

« previous php.dev (#50525) next »