Find line of an error with new DB Driver
I created a DB2 driver (made some changes on MS-SQL driver) and got it mostly working. By that I found an error in the MS-SQL driver, which has no affect on by MSSQL, but with DB2 that isn't working.
If you like to get the driver, feel free to ask and I'll provide it to you.
But my problem is another one:
With DB2 I don't get the registration view running. When I put in 4 or more characters in User Name field and press tab, the application is reloading - what's typical for an Wt Fatal Error.
And really, when I look into the log, I see this error:
Wt: fatal error: [IBM][CLI Driver][DB2/LINUXX8664] SQL0206N ""U.ID"" ist in dem verwendeten Kontext ungültig. SQLSTATE=42703"
I know the reason, it is because "id" isn't in quotes. But I don't find the code in Wt that I have to fix. Only position where I found u.id is in UserDatabase.h. But make changes there don't fix my problem.
Is there a way to find the line where that error occurs?
RE: Find line of an error with new DB Driver - Added by Torsten Schulz 2 months ago
Btw, I've a similar problem with where. A
.where("\"field_name\" = ?").bind(1)
creates the sql code
... where field_name = 1
instead of what I expect:
... where "field_name" = 1
Any idea? Because for to fix that, I changed the implementation of where in witty by itself.