aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-01-27 15:53:00 -0500
committerJames Moger <james.moger@gmail.com>2012-01-27 15:53:00 -0500
commit25e92e1b20d58b523c8a1e2090241552bc4489cd (patch)
tree587c3caf8ffce7ba46e777063601d4dd926c638f
parent342840e8c3ce94aaf14dd71b3246058393096058 (diff)
downloadiciql-25e92e1b20d58b523c8a1e2090241552bc4489cd.tar.gz
iciql-25e92e1b20d58b523c8a1e2090241552bc4489cd.zip
Fixed index out of bounds exception in parsing a default string valuev0.7.10
-rw-r--r--api/v13.xml4
-rw-r--r--docs/05_releases.mkd4
-rw-r--r--src/com/iciql/Constants.java4
-rw-r--r--src/com/iciql/ModelUtils.java2
4 files changed, 9 insertions, 5 deletions
diff --git a/api/v13.xml b/api/v13.xml
index 4dcd2aa..927f59b 100644
--- a/api/v13.xml
+++ b/api/v13.xml
@@ -43,7 +43,7 @@
type="java.lang.String"
transient="false"
volatile="false"
- value="&quot;0.7.9&quot;"
+ value="&quot;0.7.10&quot;"
static="true"
final="true"
deprecated="not deprecated"
@@ -54,7 +54,7 @@
type="java.lang.String"
transient="false"
volatile="false"
- value="&quot;2012-01-24&quot;"
+ value="&quot;2012-01-27&quot;"
static="true"
final="true"
deprecated="not deprecated"
diff --git a/docs/05_releases.mkd b/docs/05_releases.mkd
index fc90b54..934e710 100644
--- a/docs/05_releases.mkd
+++ b/docs/05_releases.mkd
@@ -6,6 +6,10 @@
**%VERSION%** ([zip](http://code.google.com/p/iciql/downloads/detail?name=%ZIP%)|[jar](http://code.google.com/p/iciql/downloads/detail?name=%JAR%)) &nbsp; *released %BUILDDATE%*
+- Fixed default String value bug where a default empty string threw an IndexOutOfBounds exception
+
+**0.7.9** &nbsp; *released 2012-01-24*
+
- Added toParameter() option for SET commands and allow generating parameterized UPDATE statements<br/>
String q = db.from(t).set(t.timestamp).toParameter().where(t.id).is(5).toSQL();<br/>
db.executeUpdate(q, new Date());
diff --git a/src/com/iciql/Constants.java b/src/com/iciql/Constants.java
index 3653cde..2ce664a 100644
--- a/src/com/iciql/Constants.java
+++ b/src/com/iciql/Constants.java
@@ -25,11 +25,11 @@ public class Constants {
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION = "0.7.9";
+ public static final String VERSION = "0.7.10";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION_DATE = "2012-01-24";
+ public static final String VERSION_DATE = "2012-01-27";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
diff --git a/src/com/iciql/ModelUtils.java b/src/com/iciql/ModelUtils.java
index 72e9690..56e6440 100644
--- a/src/com/iciql/ModelUtils.java
+++ b/src/com/iciql/ModelUtils.java
@@ -269,7 +269,7 @@ class ModelUtils {
if (def.defaultValue.charAt(0) == '\''
&& def.defaultValue.charAt(def.defaultValue.length() - 1) == '\'') {
// strip leading and trailing single quotes
- return def.defaultValue.substring(1, def.defaultValue.length() - 2);
+ return def.defaultValue.substring(1, def.defaultValue.length() - 1).trim();
}
return def.defaultValue;
}