note 71669 deleted from function.odbc-free-result by bobby
| From: | bobby@php.net | Date: | Mon, 11 Dec 2006 21:54:21 +0000 |
| Subject: | note 71669 deleted from function.odbc-free-result by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120520@lists.php.net to get a copy of this message | ||
Note Submitter: chris.brent at gmail.com
----
After calling odbc_getresult in a loop I was getting:
SQL error: [unixODBC][FreeTDS][SQL Server]Invalid cursor state, SQL state 24000 in SQLExecDirect in
But only on the second iteration (ie the first, third, etc calls where fine) I called
odbc_free_result() at the end of the loop and now its fine.