Skip to content
Advertisement

Tag: sql

Doctrine 2 Query Builder abs Function

This Work: This Don’t Work: The Error: Syntax Error] line 0, col 118: Error: Expected end of string, got ‘(‘ The native doctrine function abs work only on a select part of statment and don’t work on order by part. Obs: 1-) Im avoiding to use NativeQuery. 2-) u.code is a varchar fild on mysql and need to be varchar

Cannot insert the value NULL into column

I’m having some problems. I am trying to get a table to update, however it is not updating because one of the fields contains rows with a NULL value. Heres the original query which gives no error: Now, the nextUpdate column might be NULL, so I am trying to accommodate for that with this query: You can see I’ve added

Advertisement