Re: Stripping white-space in SELECT statments

From: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
To: thorbjorn(dot)eriksson(at)ec(dot)se, <_pppp(at)mail(dot)ru>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Stripping white-space in SELECT statments
Date: 2002-09-19 17:42:54
Message-ID: 200209191942.54258.andreak@officenet.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thursday 19 September 2002 13:41, Thorbjörn Eriksson wrote:
> By "our system" I mean the software that uses the database. It is a quit
> old software written in C that has been ported a couple of times to
> different *NIX platforms using different DBMS's. It uses in-house developed
> functions that, depending on parameters, creates a variety of SQL
> statements that in the end gets executed by PQexec (from libpq i guess).
[snip]
> > > artnrgrpmtrln_1<='201901 ÿ'

This looks like to me that your C software doesn't '\0' terminate its strings
proparly and some random byte gets in the query.

--
Andreas Joseph Krogh <andreak(at)officenet(dot)no>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Paesold 2002-09-19 18:10:46 Re: Table Copy.
Previous Message Tom Lane 2002-09-19 16:46:38 Re: How To Get Bytea Data Instead Of Its Oid