Revision 473
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/sql.py | ||
---|---|---|
152 | 152 |
except DuplicateKeyException, e: |
153 | 153 |
return value(select(db, table, [pkey], util.dict_subset(row, e.cols))) |
154 | 154 |
|
155 |
def get(db, table, row, pkey, create=False, row_ct_ref=None):
|
|
155 |
def get(db, table, row, pkey, row_ct_ref=None, create=False):
|
|
156 | 156 |
try: return value(select(db, table, [pkey], row, 1)) |
157 | 157 |
except StopIteration: |
158 | 158 |
if not create: raise |
Also available in: Unified diff
sql.py: Reordered get() args to match put()