diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2021-01-21 01:15:35 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2021-01-21 01:15:35 +0000 |
commit | 5468f8ffce2edb2a786aecdf5d07ecab6969af1c (patch) | |
tree | e042d2f137b1475c422382ab8f30bfa2d43fd603 /src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java | |
parent | 02e1648130171296b27231dbd780eb32e44edc5f (diff) | |
parent | 65d69efe9f464d306dfc5783bc891baee812ef48 (diff) | |
download | jackcess-5468f8ffce2edb2a786aecdf5d07ecab6969af1c.tar.gz jackcess-5468f8ffce2edb2a786aecdf5d07ecab6969af1c.zip |
merge modules branch
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1356 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java b/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java index 48fa1cf..e063448 100644 --- a/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java +++ b/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java @@ -17,7 +17,6 @@ limitations under the License. package com.healthmarketscience.jackcess; import java.io.IOException; -import java.sql.SQLException; import java.util.HashMap; import java.util.Map; @@ -93,7 +92,7 @@ public class ColumnBuilder { /** * Sets the type for the new column based on the given SQL type. */ - public ColumnBuilder setSQLType(int type) throws SQLException { + public ColumnBuilder setSQLType(int type) throws IOException { return setSQLType(type, 0, null); } @@ -102,7 +101,7 @@ public class ColumnBuilder { * data length (in type specific units). */ public ColumnBuilder setSQLType(int type, int lengthInUnits) - throws SQLException + throws IOException { return setSQLType(type, lengthInUnits, null); } @@ -113,7 +112,7 @@ public class ColumnBuilder { */ public ColumnBuilder setSQLType(int type, int lengthInUnits, Database.FileFormat fileFormat) - throws SQLException + throws IOException { return setType(DataType.fromSQLType(type, lengthInUnits, fileFormat)); } |