Thread: BUG #5557: Problema com Bytea

BUG #5557: Problema com Bytea

From
"Rafael Almeida"
Date:
The following bug has been logged online:

Bug reference:      5557
Logged by:          Rafael Almeida
Email address:      rafael@rafaeldeveloper.com
PostgreSQL version: 9.0
Operating system:   Windows XP
Description:        Problema com Bytea
Details:

Ae amigos, Bom estive testando a nova versão do postgresql 9.0 detectei um
bug, ou foi modificado a estrutura do campo bitea e não colocaram na
documentação, sou programador C# na versão 8.4 consigo gravar imagens no
campo bytea e recuperar normal. já na versão 9.0 gravo, mais o retorno é
diferente... ou seja... funciona no 8.4 e no 9.0 bug.

Re: BUG #5557: Problema com Bytea

From
Jaime Casanova
Date:
On Tue, Jul 13, 2010 at 4:07 AM, Rafael Almeida
<rafael@rafaeldeveloper.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =C2=A0 =C2=A0 =C2=A05557
> Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Rafael Almeida
> Email address: =C2=A0 =C2=A0 =C2=A0rafael@rafaeldeveloper.com
> PostgreSQL version: 9.0
> Operating system: =C2=A0 Windows XP
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0Problema com Bytea
> Details:
>
> Ae amigos, Bom estive testando a nova vers=C3=A3o do postgresql 9.0 detec=
tei um
> bug, ou foi modificado a estrutura do campo bitea e n=C3=A3o colocaram na
> documenta=C3=A7=C3=A3o, sou programador C# na vers=C3=A3o 8.4 consigo gra=
var imagens no
> campo bytea e recuperar normal. j=C3=A1 na vers=C3=A3o 9.0 gravo, mais o =
retorno =C3=A9
> diferente... ou seja... funciona no 8.4 e no 9.0 bug.
>

Espero que entiendas espa=C3=B1ol, mi portugues ha de ser ofensivo a tus oj=
os ;)
por favor, podrias enviarnos un ejemplo del problema que tienes (en
codigo me refiero)? puede ser un ejemplo simplificado con solo el
ejemplo basico que funciona en 8.4 y no en 9.0
otra cosa 9.0 esta en version beta y acaba de salir el beta3, podrias
probar con ese a ver si aun tienes el error?
estas usando npgsql para conectarte?

for the list:
while this is an english list this is reporting a bug in 9.0 so maybe
is fine to manage it here (please, if anyone think it's not tell that)
i will try to act as a translator unless someone with better
portuguese step up.

he's saying that some code for retrieving bytea that works in 8.4
doesn't work in 9.0, so i ask him some code to try... anyone remeber
some change in that area or in an area that could affect the npgsql
driver?

--=20
Jaime Casanova=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 www.2ndQuadrant.com
Soporte y capacitaci=C3=B3n de PostgreSQL

Re: BUG #5557: Problema com Bytea

From
Tom Lane
Date:
Jaime Casanova <jaime@2ndquadrant.com> writes:
> he's saying that some code for retrieving bytea that works in 8.4
> doesn't work in 9.0, so i ask him some code to try... anyone remeber
> some change in that area or in an area that could affect the npgsql
> driver?

Per previous response: the default text output format for bytea is
different in 9.0 ... is that it?

            regards, tom lane