From aedd34f34f083019918fc30c280fbe8ad57eeecf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 15 Jan 2011 16:50:52 -0500 Subject: Regarding reflection for this case, reflection of an int PK col with a server_default sets the "autoincrement" flag to False, except in the case of a PG SERIAL col where we detected a sequence default. [ticket:2020] [ticket:2021] --- lib/sqlalchemy/dialects/firebird/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/firebird') diff --git a/lib/sqlalchemy/dialects/firebird/base.py b/lib/sqlalchemy/dialects/firebird/base.py index feca46bce..32ffbfd69 100644 --- a/lib/sqlalchemy/dialects/firebird/base.py +++ b/lib/sqlalchemy/dialects/firebird/base.py @@ -586,7 +586,8 @@ class FBDialect(default.DefaultDialect): 'name' : name, 'type' : coltype, 'nullable' : not bool(row['null_flag']), - 'default' : defvalue + 'default' : defvalue, + 'autoincrement':default is None } if orig_colname.lower() == orig_colname: -- cgit v1.2.1