pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedDisabling scalar functions in a DSN.
2+ messages / 2 participants
[nested] [flat]
* Disabling scalar functions in a DSN.
@ 2014-05-21 08:03 Daniel Díaz <ddiaz@denodo.com>
2014-05-23 03:15 ` Re: Disabling scalar functions in a DSN. Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Díaz @ 2014-05-21 08:03 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I have a few doubts about ODBC scalar function support.
After having installed the driver and created a DSN, is there some flag
that can be set to disable support for scalar functions like {fn
current_date()}, and in a way that clients can detect by calling SQLGetInfo?
Alternatively, is there a way to configure a DSN so that scalar
functions are sent to the database "as themselves", for example {fn
current_date()} =====> current_date() ?
Looking in the driver source code, I see a file odbc.sql, that contains
Postgres function definitions. What is the purpose of this file? To be
able to invoke scalar functions directly without needing the {fn ...}
syntax ?
Thanks in advance,
Daniel
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Disabling scalar functions in a DSN.
2014-05-21 08:03 Disabling scalar functions in a DSN. Daniel Díaz <ddiaz@denodo.com>
@ 2014-05-23 03:15 ` Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Inoue, Hiroshi @ 2014-05-23 03:15 UTC (permalink / raw)
To: Daniel Díaz <ddiaz@denodo.com>; pgsql-odbc
(2014/05/21 17:03), Daniel Díaz wrote:
> Hi,
>
> I have a few doubts about ODBC scalar function support.
>
> After having installed the driver and created a DSN, is there some flag
> that can be set to disable support for scalar functions like {fn
> current_date()}, and in a way that clients can detect by calling SQLGetInfo?
>
> Alternatively, is there a way to configure a DSN so that scalar
> functions are sent to the database "as themselves", for example {fn
> current_date()} =====> current_date() ?
>
> Looking in the driver source code, I see a file odbc.sql, that contains
> Postgres function definitions. What is the purpose of this file? To be
> able to invoke scalar functions directly without needing the {fn ...}
> syntax ?
Currently odbc.sql isn't used.
Please look at mapFuncs array in convert.c.
For scalar functions not found in the table, {fn xxx(...)} is
simply converted to xxx(...).
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 10186 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-05-23 03:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 08:03 Disabling scalar functions in a DSN. Daniel Díaz <ddiaz@denodo.com>
2014-05-23 03:15 ` Inoue, Hiroshi <inoue@tpf.co.jp>
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