cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Kolbachev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2059) Detecting 'IS_AUTOINCREMENT' for columns in MS SQL Server
Date Wed, 10 Feb 2016 10:23:18 GMT
Savva Kolbachev created CAY-2059:
------------------------------------

             Summary: Detecting 'IS_AUTOINCREMENT' for columns in MS SQL Server
                 Key: CAY-2059
                 URL: https://issues.apache.org/jira/browse/CAY-2059
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 4.0.M2, 4.0.M3
            Reporter: Savva Kolbachev
            Assignee: Savva Kolbachev


Relates to the failed test DbLoaderIT.testLoad:187

SQLServerResultSetMetaData doesn't return 'IS_AUTOINCREMENT' column. Furthermore, INFORMATION_SCHEMA.COLUMNS
doesn't include 'IS_AUTOINCREMENT' column in MS SQL Server.

Detecting 'IS_AUTOINCREMENT' could be done by selecting 'is_identity' column from sys.columns.
For example,
http://stackoverflow.com/a/13772062/4819973
http://stackoverflow.com/a/87993/4819973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message