Re: Problem with libpsqlodbc

From: Gilles DAROLD <gilles(at)darold(dot)net>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Problem with libpsqlodbc
Date: 2001-08-29 18:04:28
Message-ID: 3B8D2EAC.8023B88F@darold.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc


Yes it work on other database but probably i'm missing something...

For oracle they do

create_proc => '{call create_person(?)}'
add_proc => '{call set_person_name(?,?)}'

Is that the problem ? Should I use call ? I use select instead of call
because when I've tried it under pgsql call is not a keyword. So do I
definitively missed something ?

Sorry for asking that but could you give me a little sample modifying the
first parameter in a function as I could be less stupid and understand
a little ODBC ?

I request your help because I really don't know about ODBC and after
finding the solution for openldap I will probably never use ODBC :-((

Regards,
Gilles Darold

Hiroshi Inoue wrote:

> > -----Original Message-----
> > From: darold [mailto:darold]On Behalf Of Gilles DAROLD
> >
> > Hi,
> >
> > Yes it is build on a Linux RH6.2 and I use procedure as follow:
> >
> > create_proc => 'SELECT create_person(?)'
> > add_proc => 'SELECT set_person_name(?,?)'
>
> Do they really work with other databases using
> SQLBindParameter ?
> SQLBindParameter(stmt, 1, ..) for above queries
> means a binding to the first parameter "?".
> Your functions seem to return the currval of a
> sequence but doesn't change/set the first para-

> meter(it's impossible in PostgreSQL). SELECT
> doesn't return a parameter but returns a result
> set in ODBC.
>
> regards,
> Hiroshi Inoue
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Ford 2001-08-29 18:36:31 Re: RFC: PostgreSQL and MySQL comparison.
Previous Message Andre Schnabel 2001-08-29 16:59:36 Re: Compaq iPAQ and Postgresql

Browse pgsql-odbc by date

  From Date Subject
Next Message Terry 2001-08-29 19:12:13 Re: msaccess
Previous Message G.Lee Johnson 2001-08-29 17:29:32 msaccess