pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Permission denied error with testGetUDTQualified
3+ messages / 3 participants
[nested] [flat]

* Permission denied error with testGetUDTQualified
@ 2004-11-17 15:25 Xavier Poinsard <xpoinsard@openpricer.com>
  2004-11-17 19:08 ` Re: Permission denied error with testGetUDTQualified Kris Jurka <books@ejurka.com>
  2004-11-17 20:17 ` Re: Permission denied error with testGetUDTQualified Oliver Jowett <oliver@opencloud.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Xavier Poinsard @ 2004-11-17 15:25 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,
Trying to run the tests from Build 308 againt a 7.4.1 server I got the 
following error :

  [junit] Testcase: 
testGetUDTQualified(org.postgresql.test.jdbc2.DatabaseMetaDataTest): 
   Caused an ERROR
     [junit] ERROR: permission denied for database test
     [junit] java.sql.SQLException: ERROR: permission denied for 
database test
     [junit]     at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1356)
     [junit]     at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1151)
     [junit]     at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:166)
     [junit]     at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:363)
     [junit]     at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:293)
     [junit]     at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:285)
     [junit]     at 
org.postgresql.test.jdbc2.DatabaseMetaDataTest.testGetUDTQualified(DatabaseMetaDataTest.java:503)

Can someone provides the way to solve this error (and add a note in the 
code) ?
Thanks.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Permission denied error with testGetUDTQualified
  2004-11-17 15:25 Permission denied error with testGetUDTQualified Xavier Poinsard <xpoinsard@openpricer.com>
@ 2004-11-17 19:08 ` Kris Jurka <books@ejurka.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Kris Jurka @ 2004-11-17 19:08 UTC (permalink / raw)
  To: Xavier Poinsard <xpoinsard@openpricer.com>; +Cc: pgsql-jdbc



On Wed, 17 Nov 2004, Xavier Poinsard wrote:

> Trying to run the tests from Build 308 againt a 7.4.1 server I got the 
> following error :
> 
>   [junit] Testcase: 
> testGetUDTQualified(org.postgresql.test.jdbc2.DatabaseMetaDataTest): 
>    Caused an ERROR
>      [junit] ERROR: permission denied for database test
>      [junit] java.sql.SQLException: ERROR: permission denied for 
> database test
> 
> Can someone provides the way to solve this error (and add a note in the 
> code) ?

The code is trying to create a schema, which you apparently don't have 
permission to do.

GRANT CREATE ON DATABASE test TO test;

should fix this.  Making test the owner of the test database, or making 
test a superuser will also make this work.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Permission denied error with testGetUDTQualified
  2004-11-17 15:25 Permission denied error with testGetUDTQualified Xavier Poinsard <xpoinsard@openpricer.com>
@ 2004-11-17 20:17 ` Oliver Jowett <oliver@opencloud.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Oliver Jowett @ 2004-11-17 20:17 UTC (permalink / raw)
  To: Xavier Poinsard <xpoinsard@openpricer.com>; +Cc: pgsql-jdbc

Xavier Poinsard wrote:

>  [junit] Testcase: 
> testGetUDTQualified(org.postgresql.test.jdbc2.DatabaseMetaDataTest):   
> Caused an ERROR
>     [junit] ERROR: permission denied for database test

The test user must own the test database. See 
http://jdbc.postgresql.org/development/intro.html.

-O




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-11-17 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-17 15:25 Permission denied error with testGetUDTQualified Xavier Poinsard <xpoinsard@openpricer.com>
2004-11-17 19:08 ` Kris Jurka <books@ejurka.com>
2004-11-17 20:17 ` Oliver Jowett <oliver@opencloud.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox