You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionM.select (self, columns, tabname, cond, extra, mode)
iftype(cond) =="table" thencond=sql.AND(cond) end-- <<<localstmt=sql.select (columns, tabname, cond, extra)
localcur=self:assertexec (stmt)
localtm=type (mode)
localtlocal_mode=modeiftm=="table" thent=mode_mode='a'endreturnfunction ()
-- This table must be created inside this function or it could-- make `selectall' to return the same row every time.iftm=="string" thent= {}
endreturncur:fetch (t, _mode)
end, curend
Would it be desirable to have this shortcut to cut out some characters while writing dado functions?
So we could get this:
localusuario=conn:select( "*", "user", { id_user=id_user }, "order by name", "a" )
Instead of:
localusuario=conn:select( "*", "user", sql.AND{ id_user=id_user }, "order by name", "a" )
The text was updated successfully, but these errors were encountered:
Would it be desirable to have this shortcut to cut out some characters while writing dado functions?
So we could get this:
Instead of:
The text was updated successfully, but these errors were encountered: