php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #1038 Doc update for odbc_connect and odbc_pconnect
Submitted: 1999-01-06 21:36 UTC Modified: 1999-01-10 00:43 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.6 OS:
Private report: No CVE-ID: None
 [1999-01-06 21:36 UTC] walton at nordicdms dot com
int odbc_connect(string dsn, string user, string password, int cursortype);

int odbc_pconnect(string dsn, string user, string password, int cursortype);


The optional fourth parameter sets the type of cursor to be used for this connection.  This parameter is not normally needed.  However, with some ODBC drivers, executing a complex stored procedure may fail with an error similar to: "Cannot open a cursor on a stored procedure that has anything other than a single select statement in it".  Using SQL_CUR_USE_ODBC may avoid that error.

The following constants are defined for cursortype:
  SQL_CUR_USE_IF_NEEDED
  SQL_CUR_USE_ODBC
  SQL_CUR_USE_DRIVER
  SQL_CUR_DEFAULT


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-01-10 00:43 UTC] rasmus
Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 06:01:35 2024 UTC