Update of /cvsroot/sqlobject/SQLObject/SQLObject
In directory sc8-pr-cvs1:/tmp/cvs-serv1408
Modified Files:
Col.py
Log Message:
Disallowed explicit "id" column (via assert)
Index: Col.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/Col.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Col.py 14 Mar 2003 03:52:01 -0000 1.1
--- Col.py 29 Mar 2003 20:13:14 -0000 1.2
***************
*** 27,30 ****
--- 27,31 ----
assert SQLBuilder.sqlIdentifier(name), 'Name must be SQL-safe (letters, numbers, underscores): %s' \
% repr(name)
+ assert name != 'id', 'The column name "id" is reserved for SQLObject use (and is implicitly created).'
# .name is public
self.name = name
|