PostgreSQL 8.1.4 ODBC for Windows

PostgreSQL 8.1.4 ODBC for Windows

am 28.05.2006 21:29:16 von henriquez.elvis

------=_Part_1054_6278891.1148844556284
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi list.

When will the PostgreSQL 8.1.4 ODBC Drivers be released (with support for
the new security patch just released) ? Thanks.

------=_Part_1054_6278891.1148844556284
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi list.



When will the PostgreSQL 8.1.4 ODBC Drivers be released (with support for the new security patch just released) ? Thanks.




------=_Part_1054_6278891.1148844556284--

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 10:27:30 von Dave Page

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3231739651_192043
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable




On 28/5/06 20:29, "Elvis Henr=EDquez" wrote:

> Hi list.
>=20
> When will the PostgreSQL 8.1.4 ODBC Drivers be released (with support for=
the
> new security patch just released) ? Thanks.
>=20
There aren=B9t any, as the driver is unaffected from a user point of view. Us=
e
8.02.0002 if you want to be extra careful though =AD that was auditted for
these issues and did have a couple of tweaks made to catalogue functions.

Regards, Dave

--B_3231739651_192043
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable



Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows








On 28/5/06 20:29, "Elvis Henríquez" <henriquez.elvis@gm=
ail.com> wrote:



E=3D'font-size:12.0px'>Hi list.



When will the PostgreSQL 8.1.4 ODBC Drivers be released (with support for t=
he new security patch just released) ? Thanks.



LE=3D'font-size:12.0px'>There aren’t any, as the driver is unaffected fr=
om a user point of view. Use 8.02.0002 if you want to be extra careful thoug=
h – that was auditted for these issues and did have a couple of tweaks=
made to catalogue functions.



Regards, Dave





--B_3231739651_192043--

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 10:47:24 von me

This is a multi-part message in MIME format.

------=_NextPart_000_08DC_01C6830D.456D91E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows8.02.0002 is totaly broken =
and thus unusable here - recordsets with TEXT fields are scrambled up.=20
8.01.0102 seems stable and works fine...

- thomas


----- Original Message -----=20
From: Dave Page=20
To: Elvis Henr =ED quez ; pgsql-odbc@postgresql.org=20
Sent: Monday, May 29, 2006 10:27 AM
Subject: Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows





On 28/5/06 20:29, "Elvis Henr=EDquez" wrote:


Hi list.

When will the PostgreSQL 8.1.4 ODBC Drivers be released (with support =
for the new security patch just released) ? Thanks.


There aren't any, as the driver is unaffected from a user point of view. =
Use 8.02.0002 if you want to be extra careful though - that was auditted =
for these issues and did have a couple of tweaks made to catalogue =
functions.

Regards, Dave
------=_NextPart_000_08DC_01C6830D.456D91E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows
charset=3Diso-8859-1">




8.02.0002 is totaly broken and=20
thus unusable here - recordsets with TEXT fields are scrambled =
up.=20

8.01.0102 seems stable and works=20
fine...

 

- thomas

 

 

----- Original Message -----=20
From: title=3Ddpage@vale-housing.co.uk =
href=3D"mailto:dpage@vale-housing.co.uk">Dave=20
Page

To: href=3D"mailto:henriquez.elvis@gmail.com">Elvis Henr =ED quez ; title=3Dpgsql-odbc@postgresql.org=20
href=3D"mailto:pgsql-odbc@postgresql.org">pgsql-odbc@postgre sql.org =

Sent: Monday, May 29, 2006 10:27 AM

Subject: Re: [ODBC] PostgreSQL 8.1.4 ODBC for =
Windows


style=3D"FONT-SIZE: 12px">


On 28/5/06 20:29, "Elvis =
Henr=EDquez" < href=3D"mailto:henriquez.elvis@gmail.com">henriquez.elvis@gm ail.com&g=
t;=20
wrote:


style=3D"FONT-SIZE: 12px">Hi list.

When will the PostgreSQL =
8.1.4 ODBC=20
Drivers be released (with support for the new security patch just =
released) ?=20
Thanks.

face=3D"Verdana, Helvetica, Arial">There =
aren=92t any,=20
as the driver is unaffected from a user point of view. Use 8.02.0002 if =
you want=20
to be extra careful though =96 that was auditted for these issues and =
did have a=20
couple of tweaks made to catalogue functions.

Regards, =
Dave
=20


------=_NextPart_000_08DC_01C6830D.456D91E0--

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 11:29:11 von Ludek Finstrle

Mon, May 29, 2006 at 10:47:24AM +0200, me@alternize.com wrote:
> Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows8.02.0002 is totaly
> broken and thus unusable here - recordsets with TEXT fields are
> scrambled up.

Is this a bug report? Could you describe it better? How can we reproduce
the problem. Your's mylog output is welcome.
Feel free to use Bug tracker at pgfoundry.org.

Regards,

Luf

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 11:41:02 von me

sorry, wasn't able to set up a properly test case as we noticed this problem
in our productive system (dev system not yet upgraded) while applying the
pgsql 8.1.x upgrades. i've been reporting this before, tho:

http://archives.postgresql.org/pgsql-odbc/2006-03/msg00232.p hp

i might try to set up a test case after my holidays. so far as a workaround,
we had to downgrade the driver to the beforementioned version after each
pgsql release. all newer pgodbc releases found in the postgresql.org
download section are nonfunctional for us.

- thomas


----- Original Message -----
From: "Ludek Finstrle"
To:
Cc:
Sent: Monday, May 29, 2006 11:29 AM
Subject: Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows


> Mon, May 29, 2006 at 10:47:24AM +0200, me@alternize.com wrote:
>> Re: [ODBC] PostgreSQL 8.1.4 ODBC for Windows8.02.0002 is totaly
>> broken and thus unusable here - recordsets with TEXT fields are
>> scrambled up.
>
> Is this a bug report? Could you describe it better? How can we reproduce
> the problem. Your's mylog output is welcome.
> Feel free to use Bug tracker at pgfoundry.org.
>
> Regards,
>
> Luf
>



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 11:58:54 von Ludek Finstrle

> sorry, wasn't able to set up a properly test case as we noticed this
> problem in our productive system (dev system not yet upgraded) while
> applying the pgsql 8.1.x upgrades. i've been reporting this before, tho:
>
> http://archives.postgresql.org/pgsql-odbc/2006-03/msg00232.p hp

I'm sorry but it's information less too. There is only information
about problem with no description.

I see no information about enconding (server, client),
example of select, code to retrieve the data (are you using
VB, VC, ... ADO, OLE DB, ...), ...
I'm unable to find information how is the output deformated.

> i might try to set up a test case after my holidays. so far as a

It would be nice. We're looking forward.

Thanks,

Luf

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 12:17:02 von me

> I see no information about enconding (server, client),

UNICODE db, UNICODE encoding, unicode driver version

> example of select, code to retrieve the data (are you using
> VB, VC, ... ADO, OLE DB, ...), ...

------------------------------------

Tables:

CREATE TABLE "forum"."posts" (
"p_id" SERIAL,
"p_t_id" INTEGER,
"p_first" BOOLEAN DEFAULT false NOT NULL,
"p_user" INTEGER DEFAULT 0 NOT NULL,
"p_msg_formated" TEXT DEFAULT ''::text NOT NULL,
"p_msg_raw" TEXT DEFAULT ''::text NOT NULL,
"p_date_add" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
"p_date" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
"p_status_deleted" SMALLINT DEFAULT 0 NOT NULL,
"idxfti" "public"."tsvector",
"p_msg_clean" TEXT DEFAULT ''::text,
CONSTRAINT "posts_pkey" PRIMARY KEY("p_id"),
CONSTRAINT "posts_fk" FOREIGN KEY ("p_t_id")
REFERENCES "forum"."threads"("t_id")
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) WITHOUT OIDS;

CREATE TABLE "forum"."threads" (
"t_id" SERIAL,
"t_b_id" INTEGER,
"t_status_locked" BOOLEAN DEFAULT false NOT NULL,
"t_status_deleted" BOOLEAN DEFAULT false NOT NULL,
"t_status_sticky" BOOLEAN DEFAULT false NOT NULL,
"t_name" VARCHAR(150) DEFAULT ''::character varying NOT NULL,
"t_first_post" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
"t_first_user" INTEGER DEFAULT 0 NOT NULL,
"t_last_post" TIMESTAMP WITHOUT TIME ZONE DEFAULT now(),
"t_last_user" INTEGER,
"t_stats_posts" INTEGER DEFAULT 0 NOT NULL,
"t_stats_views" INTEGER DEFAULT 0 NOT NULL,
"t_special_type" SMALLINT DEFAULT 0 NOT NULL,
"t_special_id" INTEGER DEFAULT 0 NOT NULL,
CONSTRAINT "threads_pkey" PRIMARY KEY("t_id"),
CONSTRAINT "threads_fk" FOREIGN KEY ("t_b_id")
REFERENCES "forum"."boards"("b_id")
ON DELETE CASCADE
ON UPDATE NO ACTION
NOT DEFERRABLE
) WITHOUT OIDS;

(and several indizes / fks)

------------------------------------
ASP:

Set DB2_Conn = CreateObject("ADODB.Connection")
DB2_Conn.CommandTimeout = 90
DB2_Conn.open "Driver={PostgreSQL
UNICODE};Server=localhost;Port=5432;Database=somedb;UID=db_u ser;pwd=somepassword;TrueIsMinus1=1;BoolsAsChar=0;TextAsLong Varchar=0"
Set rsRecords = Server.CreateObject("ADODB.Recordset")

sSQL = "SELECT threads.*, p_id, p_first, p_date, p_status_deleted,
p_msg_formated FROM forum.posts JOIN forum.threads ON posts.p_t_id =
threads.t_id WHERE t_id = " & lTID & " ORDER BY p_first DESC, p_date_add,
p_id"

rsRecords.Open sSQL, DB2_Conn, 0 ' adOpenForwardOnly
-----------------------------------

> I'm unable to find information how is the output deformated.

p_msg_formated is a TEXT. if its removed, the result is fine. if its
included, the fields are messed up. ie if you try to read "threads.t_date"
(for example: response.write rsRecords("t_date")) you might receive the
content of another field in the same record. this happens to almost any
field in the resultset...

this is just one example query. the problem happens on all queries involving
TEXT fields...

- thomas



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Re: PostgreSQL 8.1.4 ODBC for Windows

am 29.05.2006 21:46:24 von Ludek Finstrle

> >I see no information about enconding (server, client),
>
> UNICODE db, UNICODE encoding, unicode driver version

I have:

UNICODE db, 08.02.0004 which is unicode driver

I modify tables (a little bit):

> CREATE TABLE "forum"."posts" (
> "p_id" SERIAL,
> "p_t_id" INTEGER,
> "p_first" BOOLEAN DEFAULT false NOT NULL,
> "p_user" INTEGER DEFAULT 0 NOT NULL,
> "p_msg_formated" TEXT DEFAULT ''::text NOT NULL,
> "p_msg_raw" TEXT DEFAULT ''::text NOT NULL,
> "p_date_add" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
> "p_date" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
> "p_status_deleted" SMALLINT DEFAULT 0 NOT NULL,
> "idxfti" "public"."tsvector",
> "p_msg_clean" TEXT DEFAULT ''::text,
> CONSTRAINT "posts_pkey" PRIMARY KEY("p_id"),
> CONSTRAINT "posts_fk" FOREIGN KEY ("p_t_id")
> REFERENCES "forum"."threads"("t_id")
> ON DELETE CASCADE
> ON UPDATE NO ACTION
> NOT DEFERRABLE
> ) WITHOUT OIDS;
>
> CREATE TABLE "forum"."threads" (
> "t_id" SERIAL,
> "t_b_id" INTEGER,
> "t_status_locked" BOOLEAN DEFAULT false NOT NULL,
> "t_status_deleted" BOOLEAN DEFAULT false NOT NULL,
> "t_status_sticky" BOOLEAN DEFAULT false NOT NULL,
> "t_name" VARCHAR(150) DEFAULT ''::character varying NOT NULL,
> "t_first_post" TIMESTAMP WITHOUT TIME ZONE DEFAULT now() NOT NULL,
> "t_first_user" INTEGER DEFAULT 0 NOT NULL,
> "t_last_post" TIMESTAMP WITHOUT TIME ZONE DEFAULT now(),
> "t_last_user" INTEGER,
> "t_stats_posts" INTEGER DEFAULT 0 NOT NULL,
> "t_stats_views" INTEGER DEFAULT 0 NOT NULL,
> "t_special_type" SMALLINT DEFAULT 0 NOT NULL,
> "t_special_id" INTEGER DEFAULT 0 NOT NULL,
> CONSTRAINT "threads_pkey" PRIMARY KEY("t_id"),

I remove this until end of definition becouse you don't specify the
boards table.

> CONSTRAINT "threads_fk" FOREIGN KEY ("t_b_id")
> REFERENCES "forum"."boards"("b_id")
> ON DELETE CASCADE
> ON UPDATE NO ACTION
> NOT DEFERRABLE
> ) WITHOUT OIDS;
>
> (and several indizes / fks)

VBS:
Option Explicit

Const adLockReadOnly = 1
Const adOpenForwardOnly = 0

Dim DB2_Conn
Dim rsRecords
Dim sSQL
Dim Text

Set DB2_Conn = CreateObject("ADODB.Connection")
DB2_Conn.CommandTimeout = 90
DB2_Conn.ConnectionString = "Driver={PostgreSQL};Server=localhost;Port=5432;Database=tes t;UID=pgsql;pwd=postgresql;TrueIsMinus1=1;BoolsAsChar=0;Text AsLongVarchar=0"
DB2_Conn.Open

' Commented out or not commented out
'sSQL = "SET CLIENT_ENCODING TO ""UTF-8"""
'rsRecords.Open sSQL, DB2_Conn

Set rsRecords = CreateObject("ADODB.Recordset")

sSQL = "SELECT threads.*, p_id, p_first, p_date, p_status_deleted,p_msg_formated" & vbNewLine & _
"FROM posts JOIN threads ON posts.p_t_id = threads.t_id" & vbNewLine & _
"WHERE t_id = 1 ORDER BY p_first DESC, p_date_add, p_id"

rsRecords.Open sSQL, DB2_Conn, adOpenForwardOnly

Do Until rsRecords.EOF
Text = Text & "Date: " & rsRecords("p_date") & "; Msg: " & rsRecords("p_msg_formated") & vbNewLine
rsRecords.MoveNext
Loop

MsgBox Text

Set DB2_Conn = Nothing
Set rsRecords = Nothing

I'm unable to reproduce the error :-( Are you sure you use 08.02.0002 or
later psqlodbc driver? There is no ANSI x UNICODE version of the driver.

Could you try this VBS? Or could you specify one or two rows which
leads to error? Maybe length of text data could help ...

Regards,

Luf

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match