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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jlim at natsoft dot com dot my
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC