how can i know the sql statement which has wronged in error call back when using sql function?
ie:
cmd[0]=["stmt 1",,error_route]
cmd[1]=["stmt 2",,error_route]
cmd[2]=["stmt 3",success_route,error_route]
sql(db,cmd)
function error_route(transaction,results)
' 1. can i know the sql statement which has error here?
' 2. what is transaction argument for?
end function
function success_route(transaction,results)
....
end function
Thanks
Teo