Welcome Guest, Not a member yet? Register   Sign In
Query Builder's insert method return type
#2

Almost the same problem is with builder->delete()

In case of some "query synax error" in the builder (e.g. when we try builder->where("ID", NULL)) it does not return false but an array(?).

There is no possibility to check if builder->delete() executed sucessully because inside builder->delete() the method raise DatabaseException which is handed by framework and not propagate forward to my code.


BTW: I have some workaround for you (but for database errors, not builder syntax errors): use $db->error();
Reply


Messages In This Thread
RE: Query Builder's insert method return type - by shuwar - 02-04-2021, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB