From: Andreas Joseph Krogh <andreak@officenet.no>
To: thorbjorn.eriksson@ec.se, <_pppp@mail.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: Stripping white-space in SELECT statments
Date: Thu, 19 Sep 2002 19:42:54 +0200
Message-ID: <200209191942.54258.andreak@officenet.no> (raw)
In-Reply-To: <MFEPJLNKECPAPFDGGEIMEENLCBAA.thorbjorn.eriksson@ec.se>
References: <MFEPJLNKECPAPFDGGEIMEENLCBAA.thorbjorn.eriksson@ec.se>
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@officenet.no>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreak@officenet.no, _pppp@mail.ru
Subject: Re: Stripping white-space in SELECT statments
In-Reply-To: <200209191942.54258.andreak@officenet.no>
* 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