summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/default.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-03-24 14:31:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-03-24 14:31:48 -0400
commit5e66224d63cf1f23fce8a7fde83e791ca475f099 (patch)
tree9040121d35828f03993926c413a7573e18b9918b /lib/sqlalchemy/engine/default.py
parenta4703917d82a7100ff91d938c0592e39dd757a64 (diff)
downloadsqlalchemy-5e66224d63cf1f23fce8a7fde83e791ca475f099.tar.gz
- add an event to testing so that other dialects can intercept "test_needs_autoincrement"
- get the assumption of "1" for "first sequence item" to be dialect configured
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
-rw-r--r--lib/sqlalchemy/engine/default.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py
index 4c49e58f6..abb9f0fc3 100644
--- a/lib/sqlalchemy/engine/default.py
+++ b/lib/sqlalchemy/engine/default.py
@@ -34,6 +34,10 @@ class DefaultDialect(interfaces.Dialect):
preparer = compiler.IdentifierPreparer
supports_alter = True
+ # the first value we'd get for an autoincrement
+ # column.
+ default_sequence_base = 1
+
# most DBAPIs happy with this for execute().
# not cx_oracle.
execute_sequence_format = tuple