• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create a temporary table on postgres using statement.executeUpdate

 
Ranch Hand
Posts: 36
3
Eclipse IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic