pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: CHEN <trainee12@163.com>
To: pgsql-odbc@postgresql.org
Subject: Trouble with encoding again 
Date: Thu, 25 Aug 2005 10:43:00 +0800 (CST)
Message-ID: <430D3034.0000EC.03397@bj163app12.163.com> (raw)

Hi:
   I think that there some bug (or suggestion) in psqlodbc8.xx,

1. psqlodbc can't transfer character encoding when resolving   parameters (param_ctype is SQL_C_TYPE and param_sqltype is SQL_CHAR).

2.  when resovlving  a float type parameter. psqlodbc will add a suffix '::float4' automatically. it 's not fine for some application example as VFP, because these application is not strong type language, all numeric type including integer is float type:

example:
       INT_VAR=1    ---- it is float type
       SELECT * FROM XXX WHERE INT_KEY=?INT_VAR
--    after resovlved, sql string will become:
       SELECT * FROM XXX WHERE INT_KEY='1'::float4
--    postgresql will using seq scan instead of index scan    
    So I suggest that odbc don't add the suffix '::float4' when resovlving a float parameter ,it is redundant.
Postgrsql server will do fine for these conversion




Message-ID: <430D3034.0000EC.03397@bj163app12.163.com>
Permalink:  ../430D3034.0000EC.03397@bj163app12.163.com/
Also on:    postgresql.org/message-id/430D3034.0000EC.03397@bj163app12.163.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: trainee12@163.com
  Subject: Re: Trouble with encoding again
  In-Reply-To: <430D3034.0000EC.03397@bj163app12.163.com>
  References: <430D3034.0000EC.03397@bj163app12.163.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