Revision 5391
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1076 | 1076 |
except StopIteration: return table_col_names(db, table, recover)[0] |
1077 | 1077 |
|
1078 | 1078 |
def pkey_col(db, table, recover=None): |
1079 |
'''If no pkey, returns the first column in the table.''' |
|
1079 | 1080 |
return sql_gen.Col(pkey_name(db, table, recover), table) |
1080 | 1081 |
|
1081 | 1082 |
not_null_col = 'not_null_col' |
Also available in: Unified diff
sql.py: pkey_col(): Documented that if there is no pkey, returns the first column in the table