webmcp

view demo-app/app/main/_prefork/01-models.lua @ 399:ef3201ed67f5

Bug in <db_handle>:try_query(...) fixed, which caused errors when result contains more than two columns (bug introduced by changeset fb98b17056e5)
author jbe
date Sun Jan 03 21:15:57 2016 +0100 (2016-01-03)
parents 2169a62e12f5
children
line source
1 function mondelefant.class_prototype:by_id(id)
2 return self:new_selector()
3 :add_where{ "id = ?", id }
4 :optional_object_mode()
5 :exec()
6 end
7 execute.inner()

Impressum / About Us