[CalendarServer-changes] [7153] CalendarServer/branches/users/glyph/oracle/twext/enterprise/dal/test /test_sqlsyntax.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 7 19:07:49 PST 2011


Revision: 7153
          http://trac.macosforge.org/projects/calendarserver/changeset/7153
Author:   glyph at apple.com
Date:     2011-03-07 19:07:48 -0800 (Mon, 07 Mar 2011)
Log Message:
-----------
test for explicitly-specified default (fix went in first)

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/oracle/twext/enterprise/dal/test/test_sqlsyntax.py

Modified: CalendarServer/branches/users/glyph/oracle/twext/enterprise/dal/test/test_sqlsyntax.py
===================================================================
--- CalendarServer/branches/users/glyph/oracle/twext/enterprise/dal/test/test_sqlsyntax.py	2011-03-08 03:07:34 UTC (rev 7152)
+++ CalendarServer/branches/users/glyph/oracle/twext/enterprise/dal/test/test_sqlsyntax.py	2011-03-08 03:07:48 UTC (rev 7153)
@@ -792,6 +792,15 @@
             SQLFragment("insert into DFLTR (a, b) values "
                         "(?, A_SEQ.nextval)", ['hello']),
         )
+        # Should be the same if it's explicitly specified.
+        self.assertEquals(
+            Insert({self.schema.DFLTR.a: 'hello',
+                    self.schema.DFLTR.b: self.schema.A_SEQ}).toSQL(
+                FixedPlaceholder(ORACLE_DIALECT, "?")
+            ),
+            SQLFragment("insert into DFLTR (a, b) values "
+                        "(?, A_SEQ.nextval)", ['hello']),
+        )
 
 
     def test_numericParams(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110307/7da1fdb1/attachment-0001.html>


More information about the calendarserver-changes mailing list