pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC Error
15+ messages / 11 participants
[nested] [flat]

* ODBC Error
@ 2001-08-23 00:34  Gershon M. Wolfe <gary.wolfe@lsbc.com>
  0 siblings, 0 replies; 15+ messages in thread

From: Gershon M. Wolfe @ 2001-08-23 00:34 UTC (permalink / raw)
  To: pgsql-odbc

Dear ODBC users,

	When trying to import a table into MS Access or SAS, I get the following
error:
"Invalid field definition 'session' in definition of index or relationship".
This error only occurs when a text field called "session" in the table
is indexed. Here is how I index the field:

create index report_session on report using btree (session text_ops);

When I drop the index there is no longer an error.

Gary




^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* RE: ODBC Error
@ 2001-08-24 08:11  Henshall, Stuart - WCP <SHenshall@westcountrypublications.co.uk>
  0 siblings, 0 replies; 15+ messages in thread

From: Henshall, Stuart - WCP @ 2001-08-24 08:11 UTC (permalink / raw)
  To: 'gary.wolfe@lsbc.com' <gary.wolfe@lsbc.com>; pgsql-odbc

	Is that MS Access 97? I've found a similar problem with text fields.
I *think* it might be that M$ Access '97can't index Memo fields in its own
tables so doesn't believe tables can have memo fields indexed. Maybe turning
of Unique index recognition might work? I'm using Access 2000 now and that
doesn't seem to suffer that problem (just a whole host of new and
interesting, er, features :)  )
	I've never used SAS so don't what it is based on, but maybe if it
utilises Jet 3.5 it could suffer from a similar problem?
- Stuart

> -----Original Message-----
> From:	Gershon M. Wolfe [SMTP:gary.wolfe@lsbc.com]
> Sent:	Thursday, August 23, 2001 1:35 AM
> To:	pgsql-odbc@postgresql.org
> Subject:	ODBC Error
> 
> Dear ODBC users,
> 
> 	When trying to import a table into MS Access or SAS, I get the
> following
> error:
> "Invalid field definition 'session' in definition of index or
> relationship".
> This error only occurs when a text field called "session" in the table
> is indexed. Here is how I index the field:
> 
> create index report_session on report using btree (session text_ops);
> 
> When I drop the index there is no longer an error.
> 
> Gary
> 



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* odbc error
@ 2002-01-18 11:45  Samuele Brignoli <samuele.brignoli@darpha.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Samuele Brignoli @ 2002-01-18 11:45 UTC (permalink / raw)
  To: pgsql-bugs@postgresql.org

When trying to execute this :

select select DOC_MAST.MVNUMREG,DOC_MAST.MVDATREG  from TESTDOC_MAST
DOC_MAST where DOC_MAST.MVNUMDOC = 57 AND DOC_MAST.MVSERIAL <> '0000000343'
AND DOC_MAST.MVALFDOC = '  ' AND EXTRACT(YEAR FROM DOC_MAST.MVDATDOC) =
EXTRACT(YEAR FROM {d '2001-11-26'}) AND DOC_MAST.MVPRD = 'DV' AND
DOC_MAST.MVANNDOC = '2001'

with psqlodbc 7.01.00.09, it sends me an error 'cause the type casting {d
'2001-11-26'} doesn't work.





^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: odbc error
@ 2002-01-18 22:37  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Samuele Brignoli <samuele.brignoli@darpha.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Hiroshi Inoue @ 2002-01-18 22:37 UTC (permalink / raw)
  To: samuele.brignoli@darpha.com; +Cc: pgsql-odbc; pgsql-bugs@postgresql.org

> -----Original Message-----
> From: Samuele Brignoli
>
> When trying to execute this :
>
> select select DOC_MAST.MVNUMREG,DOC_MAST.MVDATREG  from TESTDOC_MAST
> DOC_MAST where DOC_MAST.MVNUMDOC = 57 AND DOC_MAST.MVSERIAL <>
> '0000000343'
> AND DOC_MAST.MVALFDOC = '  ' AND EXTRACT(YEAR FROM DOC_MAST.MVDATDOC) =
> EXTRACT(YEAR FROM {d '2001-11-26'}) AND DOC_MAST.MVPRD = 'DV' AND
> DOC_MAST.MVANNDOC = '2001'
>
> with psqlodbc 7.01.00.09, it sends me an error 'cause the type casting {d
> '2001-11-26'} doesn't work.

Are you getting the following error ?

ERROR:  Function 'date_part(unknown, unknown)' does not exist
        Unable to identify a function that satisfies the given argument
types
        You may need to add explicit typecasts

regards,
Hiroshi Inoue




^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: [ODBC] odbc error
@ 2002-01-21 02:36  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 15+ messages in thread

From: Hiroshi Inoue @ 2002-01-21 02:36 UTC (permalink / raw)
  To: samuele.brignoli@darpha.com; +Cc: pgsql-odbc; pgsql-bugs@postgresql.org

I wrote:
> 
> > -----Original Message-----
> > From: Samuele Brignoli
> >
> > When trying to execute this :
> >
> > select select DOC_MAST.MVNUMREG,DOC_MAST.MVDATREG  from TESTDOC_MAST
> > DOC_MAST where DOC_MAST.MVNUMDOC = 57 AND DOC_MAST.MVSERIAL <>
> > '0000000343'
> > AND DOC_MAST.MVALFDOC = '  ' AND EXTRACT(YEAR FROM DOC_MAST.MVDATDOC) =
> > EXTRACT(YEAR FROM {d '2001-11-26'}) AND DOC_MAST.MVPRD = 'DV' AND
> > DOC_MAST.MVANNDOC = '2001'
> >
> > with psqlodbc 7.01.00.09, it sends me an error 'cause the type casting {d
> > '2001-11-26'} doesn't work.

Please try the driver at 
	http://w2422.nsk.ne.jp/~inoue/.

regards,
Hiroshi Inoue



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* ODBC error
@ 2005-04-20 11:29  Delio Costa Cavalcanti - DATAPREVCE <Delio.Costa@previdencia.gov.br>
  0 siblings, 0 replies; 15+ messages in thread

From: Delio Costa Cavalcanti - DATAPREVCE @ 2005-04-20 11:29 UTC (permalink / raw)
  To: pgsql-odbc

ODBC driver version: 08.00.0101
PostgreSQL database version: 8.0.0

I did a setup datasource with driver options as in Borland Apps category faq
but when i execute a sql comand in Borland DBExplorer a result set didnt' t
show varchar datatypes columns.
For example, in the table below a result set only show the fields:
id_usuario, cs_situacao, dt_cadastro_usuario and id_funcionario

CREATE TABLE sart.usuario
(
  id_usuario numeric(6) NOT NULL,
  tx_login varchar(20) NOT NULL,
  tx_usuario varchar(100) NOT NULL,
  cs_situacao numeric(2) NOT NULL,
  dt_cadastro_usuario date,
  tx_configuracao varchar(2000),
  id_funcionario numeric(6),
  CONSTRAINT usuario_pk PRIMARY KEY (id_usuario)
) 


 <<psqlodbc_120.log>> 

Attachments:

  psqlodbc_120.log (application/octet-stream, 2.5K) download

^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* ODBC error
@ 2007-01-13 17:09  ANJANE <softwaredesigns@hotmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: ANJANE @ 2007-01-13 17:09 UTC (permalink / raw)
  To: pgsql-odbc


I am executing a procedure that returns data from a temp table created.
Sometimes the query works at the first attempt, but fails on subsequent
attempts. It is intermittent. Leaving some time between queries, it works
fine.

Basically, in my query, I do some joins of tables, load the data to a temp
table and return all the data from the temp table via a cursor to the user.
I drop the temp table if it exists at the beginning.

I get the following error message.

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

Error while executing the query; ERROR: pg_class_aclcheck: relation 6014747
not found 

The relation number keeps changing.

I am calling this query using a DSN-less setuo, from an ASP page. I use the
psqlodbc-07_03_0200 ODBC driver

All the help to resolve this is appreciated.

Thanks

-- 
View this message in context: http://www.nabble.com/ODBC-error-tf2971825.html#a8315925
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.




^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2007-01-13 22:27  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: ANJANE <softwaredesigns@hotmail.com>
  0 siblings, 1 reply; 15+ messages in thread

From: Hiroshi Inoue @ 2007-01-13 22:27 UTC (permalink / raw)
  To: ANJANE <softwaredesigns@hotmail.com>; +Cc: pgsql-odbc

ANJANE wrote:
> I am executing a procedure that returns data from a temp table created.
> Sometimes the query works at the first attempt, but fails on subsequent
> attempts. It is intermittent. Leaving some time between queries, it works
> fine.
>
> Basically, in my query, I do some joins of tables, load the data to a temp
> table and return all the data from the temp table via a cursor to the user.
> I drop the temp table if it exists at the beginning.
>   

It doesn't seem a problem of the odbc driver.
Please try it via psql and see the result.

regards,
Hiroshi Inoue



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2007-01-16 14:02  ANJANE <softwaredesigns@hotmail.com>
  parent: Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 2 replies; 15+ messages in thread

From: ANJANE @ 2007-01-16 14:02 UTC (permalink / raw)
  To: pgsql-odbc


As I said the query works intermittently. Whenever it fails, I get the
following error message

..select tp_get_clientusers('1','S%', 'rcursor');fetch all in rcursor;

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

Error while executing the query; ERROR: pg_class_aclcheck: relation 6017860
not found 

/portal/testdb.asp, line 82 

the relation oid keeps changing. Not sure what this means.

Sreyams


Hiroshi Inoue wrote:
> 
> ANJANE wrote:
>> I am executing a procedure that returns data from a temp table created.
>> Sometimes the query works at the first attempt, but fails on subsequent
>> attempts. It is intermittent. Leaving some time between queries, it works
>> fine.
>>
>> Basically, in my query, I do some joins of tables, load the data to a
>> temp
>> table and return all the data from the temp table via a cursor to the
>> user.
>> I drop the temp table if it exists at the beginning.
>>   
> 
> It doesn't seem a problem of the odbc driver.
> Please try it via psql and see the result.
> 
> regards,
> Hiroshi Inoue
> 
> ---------------------------(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
> 
> 

-- 
View this message in context: http://www.nabble.com/ODBC-error-tf2971825.html#a8390489
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.




^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2007-01-16 16:36  Tom Lane <tgl@sss.pgh.pa.us>
  parent: ANJANE <softwaredesigns@hotmail.com>
  1 sibling, 0 replies; 15+ messages in thread

From: Tom Lane @ 2007-01-16 16:36 UTC (permalink / raw)
  To: ANJANE <softwaredesigns@hotmail.com>; +Cc: pgsql-odbc

ANJANE <softwaredesigns@hotmail.com> writes:
> Error while executing the query; ERROR: pg_class_aclcheck: relation 6017860
> not found 
> the relation oid keeps changing. Not sure what this means.

It looks like it means corrupt system catalogs :-(.  If you're lucky,
the problem is just in the indexes --- try reindexing pg_class and
see if that helps.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2007-01-17 00:06  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: ANJANE <softwaredesigns@hotmail.com>
  1 sibling, 0 replies; 15+ messages in thread

From: Hiroshi Inoue @ 2007-01-17 00:06 UTC (permalink / raw)
  To: ANJANE <softwaredesigns@hotmail.com>; +Cc: pgsql-odbc

ANJANE wrote:
> As I said the query works intermittently. Whenever it fails, I get the
> following error message
>
> ..select tp_get_clientusers('1','S%', 'rcursor');fetch all in rcursor;
>
> Microsoft OLE DB Provider for ODBC Drivers error '80004005' 
>
> Error while executing the query; ERROR: pg_class_aclcheck: relation 6017860
> not found 
>
> /portal/testdb.asp, line 82 
>
> the relation oid keeps changing. Not sure what this means.

You can't  create tables and use them safely in stored procedures unless 
you treat
them via EXECUTE commands..

regards,
Hiroshi Inoue




^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* ODBC error
@ 2023-10-12 10:23  Victor K. <ptahin@gmail.com>
  0 siblings, 2 replies; 15+ messages in thread

From: Victor K. @ 2023-10-12 10:23 UTC (permalink / raw)
  To: pgsql-odbc

Hello team
We have error when trying to get data from big table (about 7 GB) directly
to pivot table in MS Excel 2016 Pro Plus x64 over ODBC driver x64
Postrge on linux ver 15
ODBC psqlodbc_16_00_0000-x64
Error
OLE DB or ODBC error. An error occurred while processing table 'Query'. The
current operation was cancelled because another operation in the
transaction failed.
and
The commit or rollback request cannot be completed because there is no
active transaction in this session.
On small tables everything is okay


Victor
 //
  (,'')> why?
<(   )'
   | |
,,_ _,,

^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2023-10-12 13:42  Dave Cramer <davecramer@postgres.rocks>
  parent: Victor K. <ptahin@gmail.com>
  1 sibling, 1 reply; 15+ messages in thread

From: Dave Cramer @ 2023-10-12 13:42 UTC (permalink / raw)
  To: Victor K. <ptahin@gmail.com>; +Cc: pgsql-odbc

On Thu, 12 Oct 2023 at 09:33, Victor K. <ptahin@gmail.com> wrote:

> Hello team
> We have error when trying to get data from big table (about 7 GB) directly
> to pivot table in MS Excel 2016 Pro Plus x64 over ODBC driver x64
> Postrge on linux ver 15
> ODBC psqlodbc_16_00_0000-x64
> Error
> OLE DB or ODBC error. An error occurred while processing table 'Query'.
> The current operation was cancelled because another operation in the
> transaction failed.
> and
> The commit or rollback request cannot be completed because there is no
> active transaction in this session.
> On small tables everything is okay
>

I would suggest looking at the server logs.
Dave Cramer
www.postgres.rocks

>

^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2023-10-12 14:14  Victor K. <ptahin@gmail.com>
  parent: Dave Cramer <davecramer@postgres.rocks>
  0 siblings, 0 replies; 15+ messages in thread

From: Victor K. @ 2023-10-12 14:14 UTC (permalink / raw)
  To: Dave Cramer <davecramer@postgres.rocks>; +Cc: pgsql-odbc

On servers side logs
could not receive data from client connection timed out
 //
  (,'')> why?
<(   )'
   | |
,,_ _,,


чт, 12 окт. 2023 г. в 16:42, Dave Cramer <davecramer@postgres.rocks>:

>
>
>
>
> On Thu, 12 Oct 2023 at 09:33, Victor K. <ptahin@gmail.com> wrote:
>
>> Hello team
>> We have error when trying to get data from big table (about 7 GB)
>> directly to pivot table in MS Excel 2016 Pro Plus x64 over ODBC driver x64
>> Postrge on linux ver 15
>> ODBC psqlodbc_16_00_0000-x64
>> Error
>> OLE DB or ODBC error. An error occurred while processing table 'Query'.
>> The current operation was cancelled because another operation in the
>> transaction failed.
>> and
>> The commit or rollback request cannot be completed because there is no
>> active transaction in this session.
>> On small tables everything is okay
>>
>
> I would suggest looking at the server logs.
> Dave Cramer
> www.postgres.rocks
>
>>

^ permalink  raw  reply  [nested|flat] 15+ messages in thread

* Re: ODBC error
@ 2023-10-13 15:14  b55white <b55white@gmail.com>
  parent: Victor K. <ptahin@gmail.com>
  1 sibling, 0 replies; 15+ messages in thread

From: b55white @ 2023-10-13 15:14 UTC (permalink / raw)
  To: Dave Cramer <davecramer@postgres.rocks>; Victor K. <ptahin@gmail.com>; +Cc: pgsql-odbc

 
 
>  
> On Oct 13, 2023 at 3:48 AM, Victor K.  <ptahin@gmail.com>  wrote:
>    
ODBC driver x64
 
Postrge on linux ver 15
 
ODBC psqlodbc_16_00_0000-x64
 
Error
 
OLE DB or ODBC error. An error occurred while processing table 'Query'. The current operation was cancelled because another operation in the transaction failed.
 
and  
 
The commit or rollback request cannot be completed because there is no active transaction in this session.
 
On small tables everything is okay
 

 
I would suggest looking at the server logs.  
 
Dave Cramer
 
www.postgres.rocks
 
>  
>  
>  
>  
>  
> On servers side logs  
>  
> could not receive data from client connection timed out
>   //
>      (,'')>  why?
>   <(      )'
>        | |
>  ,,_ _,,    
>
>  
> Client side logs would probably be useful.
>  
> Turm on through the DSN settings.  
>  
> Unless you specify a directory, they'll be in the users home dir.
>  
> Remember to shut them off when finished as they gobble space quickly.  
>  
>
>  
> Brad.  
>  
>  
>  
>  
 
 

^ permalink  raw  reply  [nested|flat] 15+ messages in thread


end of thread, other threads:[~2023-10-13 15:14 UTC | newest]

Thread overview: 15+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23 00:34 ODBC Error Gershon M. Wolfe <gary.wolfe@lsbc.com>
2001-08-24 08:11 RE: ODBC Error Henshall, Stuart - WCP <SHenshall@westcountrypublications.co.uk>
2002-01-18 11:45 odbc error Samuele Brignoli <samuele.brignoli@darpha.com>
2002-01-18 22:37 ` Re: odbc error Hiroshi Inoue <Inoue@tpf.co.jp>
2002-01-21 02:36   ` Re: [ODBC] odbc error Hiroshi Inoue <Inoue@tpf.co.jp>
2005-04-20 11:29 ODBC error Delio Costa Cavalcanti - DATAPREVCE <Delio.Costa@previdencia.gov.br>
2007-01-13 17:09 ODBC error ANJANE <softwaredesigns@hotmail.com>
2007-01-13 22:27 ` Re: ODBC error Hiroshi Inoue <inoue@tpf.co.jp>
2007-01-16 14:02   ` Re: ODBC error ANJANE <softwaredesigns@hotmail.com>
2007-01-16 16:36     ` Re: ODBC error Tom Lane <tgl@sss.pgh.pa.us>
2007-01-17 00:06     ` Re: ODBC error Hiroshi Inoue <inoue@tpf.co.jp>
2023-10-12 10:23 ODBC error Victor K. <ptahin@gmail.com>
2023-10-12 13:42 ` Re: ODBC error Dave Cramer <davecramer@postgres.rocks>
2023-10-12 14:14   ` Re: ODBC error Victor K. <ptahin@gmail.com>
2023-10-13 15:14 ` Re: ODBC error b55white <b55white@gmail.com>

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