dbTalk Databases Forums  

[BUGS] column doesnt exist?

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] column doesnt exist? in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cao Duy
 
Posts: n/a

Default [BUGS] column doesnt exist? - 11-18-2004 , 08:51 AM






hi,

I created this table:
CREATE TABLE public.stresslog(
"AbfrageId" int8 NOT NULL DEFAULT
nextval('public."stresslog_AbfrageId_seq"'::text),
"AbfrageTyp" varchar(50) NOT NULL,
"Abfrage" varchar(300),
"AnzZeilen" int8 DEFAULT 0,
"ZeitVerbrauch" int8 DEFAULT 0,
"AnzCon" int4 DEFAULT 0,
"AnzSchreib" int4 DEFAULT 0,
"AnzLesen" int4 DEFAULT 0,
"AnzTabDs" int8 DEFAULT 0,
"TabName" varchar(100),
"AnzAnweisungen" int4 DEFAULT 1,
"SystemMeldung" varchar(100) DEFAULT 'OK'::character varying,
"AusfuehrungsZeit" date,
CONSTRAINT stresslog_pkey PRIMARY KEY ("AbfrageId")
) WITHOUT OIDS;

I try to execute the following statement and get this err.msg:
select AbfrageTyp from stresslog
->ERROR: Column abfragetyp doesn't exist

the same err.msg occurs to all other field ... that mean query like
"select TabName,Anzcon from stresslog" doesn't work.

I try SELECT * FROM STRESSLOG, that works fine.
what's wrong? It is a (known) bug?


please help


best regards


ps: enviroments: pgSQL 7.4.3 on SunOS


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: [BUGS] column doesnt exist? - 11-18-2004 , 09:10 AM






On Thu, 18 Nov 2004, Cao Duy wrote:

Quote:
hi,

I created this table:
CREATE TABLE public.stresslog(
"AbfrageId" int8 NOT NULL DEFAULT
nextval('public."stresslog_AbfrageId_seq"'::text),
"AbfrageTyp" varchar(50) NOT NULL,
"Abfrage" varchar(300),
"AnzZeilen" int8 DEFAULT 0,
"ZeitVerbrauch" int8 DEFAULT 0,
"AnzCon" int4 DEFAULT 0,
"AnzSchreib" int4 DEFAULT 0,
"AnzLesen" int4 DEFAULT 0,
"AnzTabDs" int8 DEFAULT 0,
"TabName" varchar(100),
"AnzAnweisungen" int4 DEFAULT 1,
"SystemMeldung" varchar(100) DEFAULT 'OK'::character varying,
"AusfuehrungsZeit" date,
CONSTRAINT stresslog_pkey PRIMARY KEY ("AbfrageId")
) WITHOUT OIDS;

I try to execute the following statement and get this err.msg:
select AbfrageTyp from stresslog
Unquoted column names are casefolded (in PostgreSQL to lowercase, in
standard SQL to uppercase). You need to say select "AbfrageTyp" from
stresslog if you create the table with double quoted column names.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #3  
Old   
Achilleus Mantzios
 
Posts: n/a

Default Re: [BUGS] column doesnt exist? - 11-18-2004 , 09:12 AM



O Cao Duy έγραψε στις Nov 18, 2004 :

Quote:
hi,

I created this table:
CREATE TABLE public.stresslog(
"AbfrageId" int8 NOT NULL DEFAULT
nextval('public."stresslog_AbfrageId_seq"'::text),
"AbfrageTyp" varchar(50) NOT NULL,
"Abfrage" varchar(300),
"AnzZeilen" int8 DEFAULT 0,
"ZeitVerbrauch" int8 DEFAULT 0,
"AnzCon" int4 DEFAULT 0,
"AnzSchreib" int4 DEFAULT 0,
"AnzLesen" int4 DEFAULT 0,
"AnzTabDs" int8 DEFAULT 0,
"TabName" varchar(100),
"AnzAnweisungen" int4 DEFAULT 1,
"SystemMeldung" varchar(100) DEFAULT 'OK'::character varying,
"AusfuehrungsZeit" date,
CONSTRAINT stresslog_pkey PRIMARY KEY ("AbfrageId")
) WITHOUT OIDS;

I try to execute the following statement and get this err.msg:
select AbfrageTyp from stresslog
->ERROR: Column abfragetyp doesn't exist
Since you prefer case sensitive col names, try

select "AbfrageTyp" from stresslog

Quote:
the same err.msg occurs to all other field ... that mean query like
"select TabName,Anzcon from stresslog" doesn't work.

I try SELECT * FROM STRESSLOG, that works fine.
what's wrong? It is a (known) bug?


please help


best regards


ps: enviroments: pgSQL 7.4.3 on SunOS


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

--
-Achilleus


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #4  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] column doesnt exist? - 11-18-2004 , 09:24 AM



On Thu, Nov 18, 2004 at 03:47:16PM +0100, Cao Duy wrote:

Quote:
"AbfrageTyp" varchar(50) NOT NULL,
[snip]

Quote:
select AbfrageTyp from stresslog
->ERROR: Column abfragetyp doesn't exist
Read the "Identifiers and Key Words" section of the "SQL Syntax"
chapter in the documentation, especially the parts about quoted
identifiers.

http://www.postgresql.org/docs/7.4/s...AX-IDENTIFIERS

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.