on 2013 Mar 13 8:32 PM
I'm having a problem where a single development machine has stopped receiving SQL errors when it attempts to use an illegally formatted string as a uniqueidentifier
(as part of a few different unit tests). The query is this:
SELECT * FROM MyTable WHERE Id = 'this is not a legally formatted identifier'
(where the 'Id' column is of type UNIQUEIDENTIFIER)
When this query is executed against a database from InteractiveSQL, or via the C API on any of our other development PCs, this generates a -157 error: "Cannot convert 'this is not a legally formatted identifier' to a uniqueidentifier
", as we expect. On this one development machine, though, no error is generated when the query is issued via the C API, and the query appears to be processed as if it had been able to successfully convert it into a uniqueidentifier -- it simply returns no result rows. (executing the query via InteractiveSQL on this problematic machine generates the error as expected)
The only thing I'm aware of which makes this development machine different from the others is that I upgraded it to use SQLAnywhere 12.0.1.3853, whereas the other machines are running 12.0.1.3798. This behaviour remains the same, though, when I downgrade back to 12.0.1.3798.
Is there perhaps a local setting or configuration file that could be causing this unexpected lack-of-error only when executing the query through the C API, and only on this one computer? I'm just trying to work out why I'd be seeing different behaviour on this single Mac computer than on any of the other Macs and PCs.
Request clarification before answering.
User | Count |
---|---|
81 | |
29 | |
9 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.