Skip site navigation (1) Skip section navigation (2)

Bytea string operator support

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: Bytea string operator support
Date: 2001-09-11 05:28:58
Message-ID: 007501c13a82$a8bd1cd0$0705a8c0@jecw2k1 (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
> Here's a revised patch. Changes:
> 1. Now outputs '\\' instead of '\134' when using encode(bytea, 'escape')
> Note that I ended up leaving \0 as \000 so that there are no ambiguities
> when decoding something like, for example, \0123.
> 2. Fixed bug in byteain which allowed input values which were not valid
> octals (e.g. \789), to be parsed as if they were octals.
> Joe

Here's rev 2 of the bytea string support patch. Changes:

1. Added missing declaration for MatchBytea function
2. Added PQescapeBytea to fe-exec.c
3. Applies cleanly on cvs tip from this afternoon

I'm hoping that someone can review/approve/apply this before beta starts, so
I guess I'd vote (not that it counts for much) to delay beta a few days :-)

-- Joe

Attachment: bytea_string_funcs_r02.diff
Description: application/octet-stream (25.3 KB)


pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-09-11 14:38:37
Subject: Re: Configuring fdatasync for Solaris2
Previous:From: Hiroyuki YatabeDate: 2001-09-11 03:52:56
Subject: Proposals for jdbc.sgml(in 7.1.3 doc)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group