Results 1 to 4 of 4

Thread: creating temporary table PostgreSql 8.1 and iBatis 2.3

  1. #1

    Red face creating temporary table PostgreSql 8.1 and iBatis 2.3

    Greetings!

    I've build a script in pgAdmin 3 ( os x 10.4 on ppc) that does a select, some left outer joins and puts the results into a temporary table. Works great when I run in pgAdmin.

    Then I try to use in an iBatis sqlmap as a 'select' and get this when trying to execute it:

    org.postgresql.util.PSQLException: ERROR: must be member of role "postgres"

    Other than that queries run fine.
    I'm thinking the problem is on the db admin side of things, but I'm at a loss as to how to start fixing it.

    I'll greatly appreciate any feedback.

    Thank you in advance.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    I would presume you might be running the tests under a user account which doesn't have the required permissions to do what you want.
    Last edited by karldmoore; Aug 29th, 2007 at 10:21 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3

    Default

    ... correct. Cut & Paste in this case just didn't cut it
    Thanks for the tip!

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Hehe . Not a problem, glad to help!
    Last edited by karldmoore; Aug 29th, 2007 at 10:21 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •