Re: [HACKERS] Re: [INTERFACES] Re: ODBC driver

From: Byron Nikolaidis <byronn(at)insightdist(dot)com>
To: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Paul Lisewski <paull(at)techone(dot)com(dot)au>, "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>, Postgres Hackers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Re: [INTERFACES] Re: ODBC driver
Date: 1998-04-17 14:40:34
Message-ID: 353769E2.D6F8A623@insightdist.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Suggested mappings would be a big help.

Thanks,

Byron

Thomas G. Lockhart wrote:

> > > {fn UCase(...) ODBC function is not supported. Are you planning
> > > to support ODBC functions??
> > There are a ton of scalar functions that would need to be supported:
> > Strings: ascii, char, concat, difference, insert, lcase, left,
> > length, locate, ltrim, repeat, replace, right, rtrim, soundex, space,
> > substring, ucase
> >
> > Numerics: abs, acos, asin, atan, atan2, ceiling, cos, cot, degrees,
> > exp, floor, log, log10, mod, pi, power, radians, rand, round, sign,
> > sin, sqrt, tan, truncate
> >
> > Dates: curdate, curtime, dayname, dayofmonth, dayofweek, dayofyear,
> > hour, minute, month, monthname, now, quarter, second, timestampadd,
> > timestampdiff, week, year
> >
> > System Functions: database, ifnull, user
> >
> > And of course, the granddaddy of all functions, CONVERT().
> >
> > Now, some of the string functions like '{fn ucase()}' could fairly
> > easily be mapped to the Postgres "Upper" function. But what about all
> > the others?
> > Should they be implemented in the driver or in the backend? Or do we
> > just do the easy ones?
>
> Let's do both. Some already map to existing functions, which mean you
> get to do this in your driver I suppose. Others, like many of the math
> routines, should/could be in the backend.
>
> How do you want to organize attacking these? I can help now with
> suggesting mappings for existing functions (e.g. date_part('dow',
> datetime) gives you "dayofweek") and can help with new functions in a
> month or two. Or, perhaps others can help with that more quickly...
>
> - Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-04-17 14:46:16 Re: [HACKERS] Anyone working on asynchronous NOTIFY reception?
Previous Message Jose' Soares Da Silva 1998-04-17 14:29:37 drop table inside transactions

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Hartwig 1998-04-17 15:01:42 Re: [INTERFACES] ODBC 6.3.2
Previous Message Julia A.Case 1998-04-17 14:23:09 Naming of the PostreSQL ODBC .dll file