sqlYoga: failing to do simple record deletion?

Andrew Kluthe andrew at rjdfarm.com
Wed Apr 7 17:48:18 EDT 2010


using SQLYoga's plugin for logging the SQL statements it is generating always
helps me track down the culprit, along with wrapping the handler in a try
statement. This catches the errors coming out of libSQLYoga that you usually
cant see in the script editor.


on hdb_DeleteHandler
try

    put GetSelectedID() into handlerID 

    put sqlrecord_CreateObject ("handler") into theRecordA 
    sqlrecord_set theRecordA, "id", handlerID 
    sqlrecord_delete theRecordA 



   put the result into someError 
    display_HkeyDataBase 
catch theError
answer theError
end try
> end hdb_DeleteHandler 
-- 
View this message in context: http://n4.nabble.com/sqlYoga-failing-to-do-simple-record-deletion-tp1753332p1755701.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the Use-livecode mailing list