-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use DB-Library's dbdatecrack() and PostgreSQL's make_timestamp() to make changes to locales.conf unnecessary #28
Comments
That would be nice. |
…tamp() to make changes to locales.conf unnecessary
A special conversion has been added for SQL Server and Sybase's |
I just realized that the current implementation doesn't properly set the milliseconds value. I'll try to fix that tomorrow. |
I added millisecond support, and fixed some other minor things. |
Fixed in v1.0.4. |
Can you do this for dates too? I'm getting errors like
|
I don't really like the fact that users have to edit the default
locales.conf
to allow PostgreSQL to understand timestamp strings returned by FreeTDS.It looks like it would be easy to use a DB-Library function like
dbdatecrack()
to pull out the individual parts oftimestamp
,date
andtime
columns.. Then I could just usemake_timestamp()
and the other similar functions to build thetimestamp
,date
, ortime
columns.I should probably put this code in
tdsConvertToCString()
.I haven't ever tried to call PostgreSQL's SQL functions (like make_timestamp) from C code, but I think it would be worth it to learn how to do so.
The text was updated successfully, but these errors were encountered: