diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2017-05-07 17:59:09 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2017-05-07 17:59:09 +0000 |
commit | ae60e32d4044c44fd1cf4e2363f5f10715daedeb (patch) | |
tree | feacfd21e9f33fe56b18ad7a88d604fcfb6ea93b /src/main/java/com/healthmarketscience/jackcess | |
parent | 54972c4de58d2e92f818a8adb8f772513a590d19 (diff) | |
download | jackcess-ae60e32d4044c44fd1cf4e2363f5f10715daedeb.tar.gz jackcess-ae60e32d4044c44fd1cf4e2363f5f10715daedeb.zip |
Allow inserting negative auto number fields, fixes pull request #3
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1094 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java index 998e80a..c5d0449 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/ColumnImpl.java @@ -1939,7 +1939,7 @@ public class ColumnImpl implements Column, Comparable<ColumnImpl> { throws IOException { int inAutoNum = toNumber(inRowValue).intValue(); - if(inAutoNum <= INVALID_AUTO_NUMBER) { + if(inAutoNum <= INVALID_AUTO_NUMBER && !getTable().isAllowAutoNumberInsert()) { throw new IOException(withErrorContext( "Invalid auto number value " + inAutoNum)); } |