Re: #escape_string_warning = off

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: Marko Kreen <marko(at)l-t(dot)ee>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: #escape_string_warning = off
Date: 2005-08-02 07:57:34
Message-ID: 42EF276E.40000@empires.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dennis Bjorklund wrote:
> On Mon, 1 Aug 2005, Jeff Davis wrote:
>
>
>>Does the SQL standard provide no way to have a NULL character in a
>>string constant? Is single-quote the only special character?
>
>
> I don't think it forbids you from using the null character. It's not like
> the strings are zero terminated. Some encodings might not allow the null
> character, but that's different.
>

But doesn't PostgreSQL forbid us from using the NULL character in a
query at all? Don't we always have to escape or encode it in some way?
Does this new attempt at standard-compliant strings allow PostgreSQL to
accept a null character in a string?

> ps. null character does not have anything to do with the sql NULL. I'm
> sure there is someone somewhere that need this info.
>

Yeah, I was talking about '\0'.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2005-08-02 08:35:17 Re: #escape_string_warning = off
Previous Message Dennis Bjorklund 2005-08-02 07:39:36 Re: #escape_string_warning = off