Re: Newbie Question-Quoting SQL

From: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: Newbie Question-Quoting SQL
Date: 2009-04-27 20:02:19
Message-ID: 200904272202.19937.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Monday 27. April 2009, Thomas Hart wrote:

> $result = pg_query ($link, "Select * from Author");

If the table really is named "Author" with a capital A, you'll need to
quote it, because postgres will fold it to lowercase otherwise.
--
Leif Biberg Kristensen | Registered Linux User #338009
Me And My Database: http://solumslekt.org/blog/

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Andrew McMillan 2009-04-27 20:19:47 Re: Newbie Question-Quoting SQL
Previous Message Thomas Hart 2009-04-27 19:56:23 Newbie Question-Quoting SQL