From: Byron Nikolaidis <byronn@insightdist.com>
To: Jose' Soares Da Silva <sferac@bo.nettuno.it>
Cc: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: Re: ANOTHER NEW ODBC DRIVER
Date: Wed, 13 May 1998 11:09:05 -0400
Message-ID: <3559B791.7C926DDE@insightdist.com> (raw)
References: <Pine.LNX.3.96.980513143409.355A-100000@proxy.bazzanese.com>
This is the backend "canonifier" problem that was previously discussed on the interfaces list under "New Driver and Unique Indexes".
I'll forward it to you.
Byron
Jose' Soares Da Silva wrote:
> On Fri, 8 May 1998, Byron Nikolaidis wrote:
>
> > Version .0238 is now at our website.
> >
> Hello Byron,
> I have a 'palloc failure: memory exahusted' message using PSQLODBC
> with M$-Access97 as following:
> ---------------------------------------------------------------------------
> conn=69337208, SQLDriverConnect( in)='DSN=PostgreSQL;DATABASE=java;SERVER=verde;PORT=5432;READONLY=0;PROTOCOL=;CONNSETTINGS=;'
> DSN info(DSN='PostgreSQL',server='verde',dbase='java',user='postgres',passwd='',port='5432',readonly='0',protocol='', conn_settings='')
> conn=69337208, SQLDriverConnect(out)='DSN=PostgreSQL;DATABASE=java;SERVER=verde;PORT=5432;UID=postgres;READONLY=0;PWD=;PROTOCOL=;CONNSETTINGS='
> conn=69337208, query=' '
> conn=69337208, query='BEGIN'
> conn=69337208, query='set DateStyle to 'ISO'; set geqo to 'OFF''
> Command response: 'SET VARIABLE'
> conn=69337208, query='declare C69350472 cursor for select oid from pg_type where typname='lo''
> conn=69337208, query='fetch 100 in C69350472'
> [ fetched 0 rows ]
> conn=69337208, query='close C69350472'
> conn=69337208, query='END'
> conn=69337208, query='BEGIN'
> conn=69337208, query='declare C69350472 cursor for SELECT Config, nValue FROM MSysConf'
> ERROR from backend during send_query: 'ERROR: msysconf: Table does not exist.'
> conn=69337208, query='ABORT'
> conn=69337208, query='BEGIN'
> conn=69337208, query='declare C69350472 cursor for SELECT figure.azienda,figure.tipo,figure.gruppo,figure.inizio_attivita FROM figure '
> conn=69337208, query='fetch 100 in C69350472'
> [ fetched 3 rows ]
> conn=69337208, query='close C69350472'
> conn=69337208, query='END'
> conn=69337208, query='BEGIN'
> conn=69337208, query='declare C69350472 cursor for SELECT azienda,tipo,gruppo,inizio_attivita,fine_attivita,codice_figura FROM figure WHERE azienda = '001BO001 ' AND tipo = '1' AND gruppo = '1 ' AND inizio_attivita = '1998-01-12''
> conn=69337208, query='fetch 100 in C69350472'
> [ fetched 1 rows ]
> conn=69337208, query='close C69350472'
> conn=69337208, query='END'
> conn=69337208, query='BEGIN'
> conn=69337208, query='declare C69422552 cursor for SELECT azienda,tipo,gruppo,inizio_attivita,fine_attivita,codice_figura FROM figure WHERE azienda = '00212 ' AND tipo = '1' AND gruppo = '1 ' AND inizio_attivita = '1997-01-01' OR azienda = '1233
> ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '199
> 8-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '
> 11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 ' AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12' OR azienda = '1233 '
> AND tipo = '1' AND gruppo = '11' AND inizio_attivita = '1998-02-12''
> ERROR from backend during send_query: 'FATAL 1: palloc failure: memory exhausted'
> ---------------------------------------------------------------------------
> I linked the below table on Access97, It's primary key is:
> composed by (azienda,tipo,inizio_attivita)...
>
> CREATE TABLE figure (
> azienda CHAR(11) NOT NULL,
> tipo CHAR,
> gruppo CHAR(02),
> inizio_attivita DATE,
> fine_attivita DATE,
> codice_figura CHAR(11) NOT NULL,
> PRIMARY KEY (azienda,tipo,inizio_attivita)
> );
>
> java=> select * from figure;
> azienda |tipo|gruppo|inizio_attivita|fine_attivita|codice_figura
> -----------+----+------+---------------+-------------+-------------
> 001BO001 | 1| 1 | 1998-01-12| | 01
> 00212 | 1| 1 | 1997-01-01| | 12
> 1233 | 1| 11| 1998-02-12| | 23
> (3 rows)
>
> When I try to read next record (by clik on right arrow),
> I have the above message.
> Thanks for help, Jose'
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-interfaces@postgresql.org
Cc: byronn@insightdist.com, sferac@bo.nettuno.it
Subject: Re: ANOTHER NEW ODBC DRIVER
In-Reply-To: <3559B791.7C926DDE@insightdist.com>
* 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