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

Centura 1.5.1: moving from ODBC 8 to 9, some trouble

From: Marco Gaiarin <gaio(at)sv(dot)lnf(dot)it>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: Centura 1.5.1: moving from ODBC 8 to 9, some trouble
Date: 2011-03-16 09:20:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
In our organization we have some old apps written in Gupta Centura (AKA
Team Developer 1.5.1):

We use extensively this RAD with Postgers database, using the odbc
driver as a glue.

I've deployed an upgrade of the ODBC driver from 8.XX to 9.XX, and
suddenly these apps stop working, doing strange things.

I'm currently using driver version 09.00.0200, and a simple query like:

	Call SqlPrepareAndExecute(hsql,'select sum(dare),sum(avere) into :daren,:averen from tmp_articoli')

return errors like:

	select sum(dare),sum(avere) into :daren,:averen from tmp_articoli
	Attempt to fetch non-numeric data into numeric column
	Reason: One of the application's sqlssb function calls set up a fetch
		buffer that is defined as numeric but the data that was fetched
		cannot be converted to a numeric value.

postgres (DB) version are 8.3.14 (debian lenny); table schema:

 registra27=# \d tmp_articoli
        Tabella "public.tmp_articoli"
   Colonna   |      Tipo      | Modificatori 
  narticolo  | integer        | 
  sede_art   | integer        | 
  conto_art  | character(12)  | 
  attiv_art  | integer        | 
  data_art   | date           | 
  tipo       | character(1)   | 
  conto      | character(8)   | 
  descr      | character(250) | 
  dare       | numeric(15,2)  | 
  avere      | numeric(15,2)  | 
  sede       | integer        | 
  attiv      | integer        | 
  cdc        | character(6)   | 
  tipo_prot  | character(2)   | 
  protocollo | integer        | 
  rw         | integer        | 

What changed between odbc driver 8 and 9? Thanks.

dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''      
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)	  tel +39-0434-842711  fax +39-0434-842797

	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

pgsql-odbc by date

Next:From: Arnaud LesauvageDate: 2011-03-16 09:20:50
Subject: Re: Access Autonumber fields not detected in 9.0.0200
Previous:From: Joseph DoenchDate: 2011-03-09 02:09:31
Subject: Re: Windows ODBC and a Router obstacle?

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