From 8e9fce417a04e647c6c3a3791b59a9cb704fc44d Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Mon, 19 May 2008 23:15:41 +0000 Subject: Split out a couple true autoincrement/identity tests from emulated-with-sequences autoincrement=True tests. --- test/testlib/requires.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/testlib') diff --git a/test/testlib/requires.py b/test/testlib/requires.py index f5746da8f..7b2d33beb 100644 --- a/test/testlib/requires.py +++ b/test/testlib/requires.py @@ -27,6 +27,22 @@ def foreign_keys(fn): no_support('sqlite', 'not supported by database'), ) +def identity(fn): + """Target database must support GENERATED AS IDENTITY or a facsimile. + + Includes GENERATED AS IDENTITY, AUTOINCREMENT, AUTO_INCREMENT, or other + column DDL feature that fills in a DB-generated identifier at INSERT-time + without requiring pre-execution of a SEQUENCE or other artifact. + + """ + return _chain_decorators_on( + fn, + no_support('firebird', 'not supported by database'), + no_support('oracle', 'not supported by database'), + no_support('postgres', 'not supported by database'), + no_support('sybase', 'not supported by database'), + ) + def independent_connections(fn): """Target must support simultaneous, independent database connections.""" -- cgit v1.2.1