Problem with Mach-ii and exception

18 views
Skip to first unread message

Dede

unread,
Mar 27, 2014, 5:50:25 AM3/27/14
to mach-ii-for...@googlegroups.com
Hello,

I don't know if the previous message was published or not. If so, sorry for the twice document.


I work with CF9 and Mach-ii.

The problem is:

<cfquery name="Query" datasource="DB" >
                    UPDATE table
                          SET field1 = 123,
                                  field2 = "abc"
                    WHERE field_ID = null
</cfquery>

Here, the mistake is " WHERE field_ID = null "

Mach-ii doesn't intercept the mistake no exception occur.

Result: When the user update the informations, he think that all are saved because the system show "modification saved".
            In reality, nothing are saved and no message of mistake is displayed.

How can intercept this mistake ?

Your support will be appreciated
Thank you

Best regards

Andre
Reply all
Reply to author
Forward
0 new messages