Re: mssql_query, sybase_query
| From: | Bradley Bell | Date: | Thu, 13 Dec 2001 20:16:28 +0000 |
| Subject: | Re: mssql_query, sybase_query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15003@lists.php.net to get a copy of this message | ||
Okay, I solved the problem. FreeTDS 0.52 is BROKEN. upgrade to a newer
version and all is well, the documentation is correct (I think).
-brad
On Wed, Dec 12, 2001 at 02:47:24PM -0800, Bradley Bell wrote:
> Is it just me, or is the documentation for these two functions totally wrong?
> They are sopposed to return int values, either a "result identifier", or 0,
> if the query fails.
> However, it looks to me like it always returns a string. If the query
> returns data (i.e. a SELECT query), then it returns something like
> "Resource id #2". If the query doesn't return anything (i.e. an INSERT or
> whatever), or if it fails, it returns an empty string.
> So, how does one tell the difference between a failed query and a query with
> no results?
>
> -brad
>
> P.S. Which one is broken, the docs or the implementation, and are they going
> to be fixed?
--
Bradley Bell
Computer Support Analyst
University of Washington
Classroom Support Services