aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Linskey2013-12-16 22:26:24 -0500
committerBen Linskey2013-12-16 22:26:24 -0500
commitccf9b883eaaf75cbbbf41a18970fe0f3ff619d04 (patch)
tree62f15faa52dd6751fffc3c8d524e0b846dd1ec6c /src
parentb7596dd9ac19356402d90be4264e3e651aff6029 (diff)
downloadgreek-reference-database-creator-1.0.1.tar.gz
Fix _ID column bug.v1.0.1
SQLite was not populating the _ID columns with the ROWID due to the fact that the _ID datatype was set to INT rather than INTEGER.
Diffstat (limited to 'src')
-rw-r--r--src/com/benlinskey/grdbc/LexiconCreator.java2
-rw-r--r--src/com/benlinskey/grdbc/SyntaxCreator.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/benlinskey/grdbc/LexiconCreator.java b/src/com/benlinskey/grdbc/LexiconCreator.java
index 7416b28..6dca163 100644
--- a/src/com/benlinskey/grdbc/LexiconCreator.java
+++ b/src/com/benlinskey/grdbc/LexiconCreator.java
@@ -106,7 +106,7 @@ public class LexiconCreator {
try {
String dropTable = "DROP TABLE IF EXISTS " + TABLE_NAME;
String createTable = "CREATE TABLE " + TABLE_NAME + " (" +
- "_ID INT PRIMARY KEY, " +
+ "_ID INTEGER PRIMARY KEY, " +
"betaNoSymbols VARCHAR(100), " +
"betaSymbols VARCHAR(100), " +
"greekFullWord VARCHAR(100), " +
diff --git a/src/com/benlinskey/grdbc/SyntaxCreator.java b/src/com/benlinskey/grdbc/SyntaxCreator.java
index cce594d..172b53e 100644
--- a/src/com/benlinskey/grdbc/SyntaxCreator.java
+++ b/src/com/benlinskey/grdbc/SyntaxCreator.java
@@ -109,7 +109,7 @@ public class SyntaxCreator {
try {
String dropTable = "DROP TABLE IF EXISTS " + TABLE_NAME;
String createTable = "CREATE TABLE " + TABLE_NAME + " (" +
- "_ID INT PRIMARY KEY, " +
+ "_ID INTEGER PRIMARY KEY, " +
"chapter VARCHAR(100), " +
"section VARCHAR(100), " +
"xml TEXT)";