aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2013-01-09 15:49:20 +0200
committerAnna Koskinen <anna@vaadin.com>2013-01-09 15:49:20 +0200
commit952a77091aeb0820a4235077a14398c83a2827cc (patch)
treee2c2a9720b389e60ae558d7e5e07efbbf15c2da4 /server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
parent1a20331682f4495509fa79ad54c96fe77de82eed (diff)
downloadvaadin-framework-952a77091aeb0820a4235077a14398c83a2827cc.tar.gz
vaadin-framework-952a77091aeb0820a4235077a14398c83a2827cc.zip
Merge of (#10032) to Vaadin 7.
SQLContainer and DB2 not handling empty result set metadata correctly. Change-Id: I20ad1e3d528f92826e3f9049403c6a953a6a07c8
Diffstat (limited to 'server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java')
-rw-r--r--server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
index 742e68738a..f7f3e73a7f 100644
--- a/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
+++ b/server/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
@@ -1149,8 +1149,8 @@ public class SQLContainer implements Container, Container.Filterable,
try {
delegate.beginTransaction();
rs = delegate.getResults(0, 1);
- boolean resultExists = rs.next();
rsmd = rs.getMetaData();
+ boolean resultExists = rs.next();
Class<?> type = null;
for (int i = 1; i <= rsmd.getColumnCount(); i++) {
if (!isColumnIdentifierValid(rsmd.getColumnLabel(i))) {