aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2021-01-18 17:17:48 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2021-01-18 17:17:48 +0000
commit2328635638b76edd6c16c4557980eabc835420f5 (patch)
tree27c1f47a4e870d65518724bdfcbe0a688024d179 /src
parentd9117987ac5e06228e3efbfa3c9121f9998740a9 (diff)
downloadjackcess-2328635638b76edd6c16c4557980eabc835420f5.tar.gz
jackcess-2328635638b76edd6c16c4557980eabc835420f5.zip
tweak example
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/modules@1352 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r--src/site/xdoc/index.xml6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 6cef4a6..9a9d7a1 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -89,10 +89,8 @@ if(row != null) {
<li>Creating a new table and writing data into it:
<source>Database db = DatabaseBuilder.create(Database.FileFormat.V2000, new File("new.mdb"));
Table newTable = new TableBuilder("NewTable")
- .addColumn(new ColumnBuilder("a")
- .setSQLType(Types.INTEGER))
- .addColumn(new ColumnBuilder("b")
- .setSQLType(Types.VARCHAR))
+ .addColumn(new ColumnBuilder("a", DataType.LONG))
+ .addColumn(new ColumnBuilder("b", DataType.TEXT))
.toTable(db);
newTable.addRow(1, "foo");
</source>