pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedtrouble with table creation
3+ messages / 3 participants
[nested] [flat]
* trouble with table creation
@ 2001-07-30 22:24 pmiranda@vm.com.br
2001-07-30 23:07 ` Re: trouble with table creation Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-07-30 23:17 ` Re: trouble with table creation Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 3+ messages in thread
From: pmiranda@vm.com.br @ 2001-07-30 22:24 UTC (permalink / raw)
To: pgsql-admin
Hi, fellows!
I'm getting crazy with a stupid question. I have just created a Database
using pgadmin.exe, then I've created a table named "tabCliente" and, of
course, wanted to populate it. Everything was working fine since I tried to
use pgadmin's sql tool. An idiot sentence like "insert into tabCliente
(iCodCliente, nomCliente) values (NextVal('sqCliente'), 'Nome do Cliente')
resulted in an error message like this:
"Error: -2147467259
Error while executing the query (non-fatal);
ERROR: Relation 'tabcliente' does not exist
function: frmSQL, cmdExecute_Click"
Please! Anyone know what have I missed? Is that a problem with pgadmin?
Help me, please!
The user has total privileges over the database.
Thanks in advance for any advice.
Regards,
Paulo
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: trouble with table creation
2001-07-30 22:24 trouble with table creation pmiranda@vm.com.br
@ 2001-07-30 23:07 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
1 sibling, 0 replies; 3+ messages in thread
From: Stephan Szabo @ 2001-07-30 23:07 UTC (permalink / raw)
To: pmiranda@vm.com.br; +Cc: pgsql-admin
Did you create the table as "tabCliente"? If so,
you need to always refer to it in the double quotes.
Normally the names are lowercased (note the error
message says 'tabcliente') but if you place it
in double quotes it keeps the case.
On Mon, 30 Jul 2001 pmiranda@vm.com.br wrote:
> Hi, fellows!
>
> I'm getting crazy with a stupid question. I have just created a Database
> using pgadmin.exe, then I've created a table named "tabCliente" and, of
> course, wanted to populate it. Everything was working fine since I tried to
> use pgadmin's sql tool. An idiot sentence like "insert into tabCliente
> (iCodCliente, nomCliente) values (NextVal('sqCliente'), 'Nome do Cliente')
> resulted in an error message like this:
>
> "Error: -2147467259
> Error while executing the query (non-fatal);
> ERROR: Relation 'tabcliente' does not exist
>
> function: frmSQL, cmdExecute_Click"
>
> Please! Anyone know what have I missed? Is that a problem with pgadmin?
> Help me, please!
>
> The user has total privileges over the database.
>
> Thanks in advance for any advice.
>
> Regards,
>
>
> Paulo
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: trouble with table creation
2001-07-30 22:24 trouble with table creation pmiranda@vm.com.br
@ 2001-07-30 23:17 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-07-30 23:17 UTC (permalink / raw)
To: pmiranda@vm.com.br; +Cc: pgsql-admin
pmiranda@vm.com.br writes:
> I'm getting crazy with a stupid question. I have just created a Database
> using pgadmin.exe, then I've created a table named "tabCliente"
If you want to use mixed-case table names, you have to be careful to
*always* double-quote the names. You cannot quote them sometimes and
not other times, because when you don't quote 'em, they're folded to
lower case.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-07-30 23:17 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-30 22:24 trouble with table creation pmiranda@vm.com.br
2001-07-30 23:07 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-07-30 23:17 ` Tom Lane <tgl@sss.pgh.pa.us>
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