Bug report: PL/pgSQL and mixed case table/field names. - Mailing list pgsql-bugs

From Billy G. Allie
Subject Bug report: PL/pgSQL and mixed case table/field names.
Date
Msg-id c84121743b6cfafa070f383aeb288c04
Whole thread Raw
List pgsql-bugs
- --==_Exmh_-1966595473P
Content-Type: text/plain; charset=us-ascii

============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        : Billy G. Allie
Your email address    : Bill.Allie@mug.org


System Configuration
- ---------------------
  Architecture (example: Intel Pentium)      : Intel i486DX2

  Operating System (example: Linux 2.0.26 ELF)     : UnixWare 7.0.1

  PostgreSQL version (example: PostgreSQL-6.4)  : PostgreSQL-6.4

  Compiler used (example:  gcc 2.8.0)        : Optimizing C Compilation Sys.
                                                  (CCS) 3.2 08/18/98 (u701)


Please enter a FULL description of your problem:
- ------------------------------------------------
PL/pgSQL functions will fail to run if a table with a mixed case name is
used/referenced.


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
- ----------------------------------------------------------------------
$ psql mug <test.func
CREATE FUNCTION "In_Committees" ("int4" ) RETURNS "text" AS '
DECLARE
    committee_rec   "Committees"%ROWTYPE;
BEGIN
    SELECT * INTO committee_rec FROM Committees WHERE CommitteeID = $1;
    IF NOT FOUND THEN
        RETURN ''FALSE'';
    END IF;
    RETURN ''TRUE'';
END;' LANGUAGE 'plpgsql';
CREATE

select "In_Committees" (2);
NOTICE:  plpgsql: ERROR during compile of In_Committees near line 2
ERROR:  parse error at or near """
EOF
$


If you know how this problem might be fixed, list the solution below:
- ---------------------------------------------------------------------



- --
____       | Billy G. Allie    | Domain....: Bill.Allie@mug.org
|  /|      | 7436 Hartwell     | Compuserve: 76337,2061
|-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com
|/  |LLIE  | (313) 582-1540    |



- --
____       | Billy G. Allie    | Domain....: Bill.Allie@mug.org
|  /|      | 7436 Hartwell     | Compuserve: 76337,2061
|-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com
|/  |LLIE  | (313) 582-1540    |



- --==_Exmh_-1966595473P
Content-Type: application/pgp-signature

- -----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: QVIbFsFxxG4fMmzZV3SFfhF3l8ujs7AW

iQA/AwUBNmXvyKFebSRz8o+3EQIRjACfeHBIC+g7HU8slNyo6+Fna+KtgkgAnj2b
mC7ZouAiNPGU+4SYP9Ws96Fj
=pA8C
- -----END PGP SIGNATURE-----

- --==_Exmh_-1966595473P--

pgsql-bugs by date:

Previous
From: "Ivan Drinks Sr."
Date:
Subject: initdb does not work
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] bug in postgresql-v6.4 on FreeBSD