pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raymond O'Donnell <rod@iol.ie>
To: Marco Dieckhoff <dieck@gmx.de>
Cc: pgsql-php@postgresql.org
Subject: Re: checking select query syntax and semantics via php without executing
Date: Mon, 05 Oct 2009 22:50:51 +0100
Message-ID: <4ACA6A3B.50005@iol.ie> (raw)
In-Reply-To: <4ACA6668.2000701@gmx.de>
References: <4ACA6668.2000701@gmx.de>

On 05/10/2009 22:34, Marco Dieckhoff wrote:

> Is it possible in PHP to give a sql (select) query to Postgres via pg_*
> so that it is NOT executed but merely checked for syntax including
> correct, existing field and table names, and data types?

How about prepending "explain" to the query? Just a wild notion.

Ray.


------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------



view thread (5+ messages)  latest in thread

Message-ID: <4ACA6A3B.50005@iol.ie>
Permalink:  ../4ACA6A3B.50005@iol.ie/
Also on:    postgresql.org/message-id/4ACA6A3B.50005@iol.ie

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: rod@iol.ie, dieck@gmx.de
  Subject: Re: checking select query syntax and semantics via php without executing
  In-Reply-To: <4ACA6A3B.50005@iol.ie>
  References: <4ACA6668.2000701@gmx.de> <4ACA6A3B.50005@iol.ie>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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