Обсуждение: Access datetime oddities

Поиск
Список
Период
Сортировка

Access datetime oddities

От
Patrick Welche
Дата:
I am trying to get M$ Access and postgresql to talk via an odbc driver. Queries
involving "datetime" on M$ Access seem to include things like

'#15:10:00#'

which allegedly means "what's in quotes is a datetime" and

{t "timeslice"}

where timeslice in the postgresql table which is "linked" is a timestamp
with time zone and apparently means CAST (timeslice AS TIME), but of course
M$ Access doesn't seem to know about CAST().

Having looked at 4.7 of ansi-iso-9075-2-1999, there is no mention of # nor
{t ...}, {d ...}. Where do these come from? Is this something to do with the
odbc in between? (they appear in the odbc.log)

Basically it means that queries such as

select ... where cast(timeslice as time)>'15:10:00'

can't be done...

Thoughts?

Cheers,

Patrick