php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12166 SQL_CUR_DEFAULT constant not defined in php_odbc.dll
Submitted: 2001-07-14 11:14 UTC Modified: 2002-01-21 09:40 UTC
From: jlim at natsoft dot com dot my Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.6 OS: Windows ME
Private report: No CVE-ID: None
 [2001-07-14 11:14 UTC] jlim at natsoft dot com dot my
SQL_CUR_DEFAULT, which is a constant that can be passed into odbc_connect, is not defined in the odbc extension. I get a warning that it an undefined constant when I use it. A quick check in the source code confirmed it. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-16 08:31 UTC] kalowsky@php.net
this is supposed to be defined by your ODBC driver, not by PHP... after all, how is PHP to know what your DB's default cursor is?
 [2001-07-16 22:32 UTC] jlim at natsoft dot com dot my
Hi Kowalsky

If you check in microsoft's  sqlext.h you will see that
 
SQL_CUR_DEFAULT is set to SQL_CUR_USE_DRIVER 

so it is a constant. Also if you check the odbc_connect( ) docs, it says that SQL_CUR_DEFAULT is an acceptable parameter to pass into odbc_connect(). So it should be defined, or the documentation be corrected.

Regards, John
 [2001-07-17 08:42 UTC] kalowsky@php.net
Which docs are you referring to?  The ODBC docs for PHP?  The ODBC v3 docs?  The ODBC v3.5 docs?




please note that my name is kalowsky, not kowalsky.


 [2001-08-20 12:03 UTC] sniper@php.net
no feedback.

 [2001-08-21 05:30 UTC] jlim at natsoft dot com dot my
I meant the PHP Manual entry for odbc_connect(). 

 [2002-01-21 09:40 UTC] kalowsky@php.net
Should be fixed now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 23:01:30 2024 UTC