[CalendarServer-changes] [6991] CalendarServer/branches/users/glyph/dalify/twext/enterprise/dal/test /test_parseschema.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 16 06:37:19 PST 2011
Revision: 6991
http://trac.macosforge.org/projects/calendarserver/changeset/6991
Author: glyph at apple.com
Date: 2011-02-16 06:37:19 -0800 (Wed, 16 Feb 2011)
Log Message:
-----------
extra test for default sequence column
Modified Paths:
--------------
CalendarServer/branches/users/glyph/dalify/twext/enterprise/dal/test/test_parseschema.py
Modified: CalendarServer/branches/users/glyph/dalify/twext/enterprise/dal/test/test_parseschema.py
===================================================================
--- CalendarServer/branches/users/glyph/dalify/twext/enterprise/dal/test/test_parseschema.py 2011-02-16 14:37:08 UTC (rev 6990)
+++ CalendarServer/branches/users/glyph/dalify/twext/enterprise/dal/test/test_parseschema.py 2011-02-16 14:37:19 UTC (rev 6991)
@@ -101,6 +101,23 @@
[s.tables[0].columns[0]])
+ def test_sequenceDefault(self):
+ """
+ Default sequence column.
+ """
+ s = Schema()
+ addSQLToSchema(s,
+ """
+ create sequence alpha;
+ create table foo (
+ bar integer default nextval('alpha') not null,
+ qux integer not null
+ );
+ """)
+ self.assertEquals(s.tableNamed("foo").columnNamed("bar").needsValue(),
+ False)
+
+
def test_defaultConstantColumns(self):
"""
Parsing a 'default' column with an appropriate type in it will return
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110216/b09b0879/attachment.html>
More information about the calendarserver-changes
mailing list