diff -r 18df2bf882ee -r 0effb4e865dd src/net/lemnik/eodsql/QueryTool.java --- a/src/net/lemnik/eodsql/QueryTool.java Sat Sep 18 23:31:37 2010 +0200 +++ b/src/net/lemnik/eodsql/QueryTool.java Sat Sep 18 23:37:19 2010 +0200 @@ -312,8 +312,8 @@ *

* Sometimes you need to perform a less structured "SELECT" than a Query interface allows. Although this method * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. The returned {@link DataSet} will be connected to the database, and the Connection will be - * taken from the {@link #setDefaultDataSource(DataSource) defaultDataSource}. + * interface cannot. The returned {@link DataSet} will be connected to the database and will be updateable, + * and the Connection will be taken from the {@link #setDefaultDataSource(DataSource) defaultDataSource}. *

* This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however * provides the same primitive-type abstraction that a Query interface provides you with. The query string is @@ -354,8 +354,8 @@ *

* Sometimes you need to perform a less structured "SELECT" than a Query interface allows. Although this method * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. The returned {@link DataSet} will be connected to the database and the Connection is - * obtained from the DataSource provided. + * interface cannot. The returned {@link DataSet} will be connected to the database and will be updateable + * and the Connection is obtained from the DataSource provided. *

* This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however * provides the same primitive-type abstraction that a Query interface provides you with. The query string is @@ -422,7 +422,7 @@ *

* Sometimes you need to perform a less structured "SELECT" than a Query interface allows. Although this method * is significantly slower than building a Query interface, it provides needed functionality that a Query - * interface cannot. The returned {@link DataSet} will be connected to the database. + * interface cannot. The returned {@link DataSet} will be connected to the database and will be updateable. *

* This method does no caching of any sort, and the query will be re-parsed each time it is executed. It however * provides the same primitive-type abstraction that a Query interface provides you with. The query string is diff -r 18df2bf882ee -r 0effb4e865dd src/net/lemnik/eodsql/QuickQueryUtil.java --- a/src/net/lemnik/eodsql/QuickQueryUtil.java Sat Sep 18 23:31:37 2010 +0200 +++ b/src/net/lemnik/eodsql/QuickQueryUtil.java Sat Sep 18 23:37:19 2010 +0200 @@ -12,6 +12,7 @@ import java.text.ParseException; +import java.util.HashMap; import java.util.Map; import java.util.Collections; @@ -33,10 +34,14 @@ */ class QuickQueryUtil { - private static final Map DEFAULT_DATASET_PARAMETERS = - Collections.singletonMap( - DataSetWrapper.PARAMETER_BINDING_TYPE, - (Object)BindingType.NORMAL_BINDING); + private static final Map DEFAULT_DATASET_PARAMETERS; + + static { + final Map map = new HashMap(2); + map.put(DataSetWrapper.PARAMETER_BINDING_TYPE, BindingType.NORMAL_BINDING); + map.put(DataSetWrapper.PARAMETER_UPDATABLE, true); + DEFAULT_DATASET_PARAMETERS = Collections.unmodifiableMap(map); + } private static final Select DEFAULT_SELECT_PARAMETERS = new Select() { @@ -57,7 +62,7 @@ } public boolean readOnly() { - return true; + return false; } public Class cache() {