aspose file tools*
The moose likes JDBC and the fly likes create a temporary table on postgres using statement.executeUpdate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "create a temporary table on postgres using statement.executeUpdate" Watch "create a temporary table on postgres using statement.executeUpdate" New topic
Author

create a temporary table on postgres using statement.executeUpdate

Fernando Guerrero
Greenhorn

Joined: Apr 26, 2011
Posts: 14

Hello

I am using statement.executeUpdate to create a temporary table on a postgres server (postgres 9). When I run my program on Eclipse everything works fine, the tables are created and the tables have the right data, also executeUpdate returns 0, which is the right value to be returned when a table is created (regardless of how many rows are inserted in the table ), according with the documentation .
But when I run my program in my terminal (CentOS 5) the tables are created, the tables have the right data (everything looks fine), but executeUpdate returns me 1, I have not idea why I am getting 1, it should be zero , and it cannot be the number of rows inserted because 5 rows are inserted, so where is this 1 coming from??

Thanks in advance.
 
 
subject: create a temporary table on postgres using statement.executeUpdate