nakagami / firebirdsql

Firebird RDBMS sql driver for Go (golang)
MIT License
224 stars 60 forks source link

ability to return date, time and timestamp in a casteable format #93

Closed xhit closed 4 years ago

xhit commented 4 years ago

Go format for dates are strange for many systems and need some work before casting.

This change add a new exported boolean variable called ReturnCasteableDate, if true then date types Date, Time and Timestamp are returned in casteable formats

Date: returned in format 2006-01-02 Time: returned in format 15:04:05.000 Timestamp: returned in format 2006-01-02 15:04:05.000

nakagami commented 4 years ago

I do'nt understand situation and usage. Please add test code too.

xhit commented 4 years ago

Closed for modifications, I will create an issue first.