[erlang-patches] PATCH: ODBC application discarding sqlstate in get_diagnos function

Andrew Thompson andrew@REDACTED
Sun Oct 11 20:17:16 CEST 2009


On Sun, Oct 11, 2009 at 10:40:10AM +0300, Juhani R?nkimies wrote:
> On Sat, Oct 10, 2009 at 7:45 PM, Andrew Thompson <andrew@REDACTED> wrote:
> 
 
> Sometimes when an update/insert/delete is successfully executed in the
> db, I get {error,"No SQL-driver information available."}.
> 
> My assumption (with no factual support) is that odbc app gets confused
> if the db sends additional information (SQLSTATE?) about the execution
> of the statement, like nulls ignored by aggregate functions or info
> about type conversions that were made.
> 

Ah, that does sound like a similar issue although I'm not sure my patch
will solve it. Does it happen consistantly or is it random? Are you
using parameterized queries?

Andrew


More information about the erlang-patches mailing list