-
Notifications
You must be signed in to change notification settings - Fork 640
Time Literal DateFormat Parsing #24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hello, I have implemented the proposal indicated above and done the initial testing. The issue with date I can submitt these changes for review if they seem an appropriate solution for date parsing Dana Proctor |
Hello, I have created a Pull request #33 for review to address the issue indicated. Dana Proctor |
There's also the |
Is this related to the below exception? If not I can start a new issue. Using
|
Hello, As far I know this issue has been addressed in other I would open another issued. I thought I have requested this be close long ago. danap. |
According to the jdbc4.0 ref. which I'm sure a new version is available, the following Date & Time
Literals have the format.
Date: {d, 'yyyy-mm-dd'}, Time:{t, 'hh:mm:ss'}, Timestamp: {ts, 'yyyy-mm-dd hh:mm:ss.f...'}
I would assume therefore if a TEXT data type field has the contents 2015-03-22 and contents are
returned via getDate() then I would not expect a date parse error would occur. Currently the
getDate() function is using a common DateFormat for all three of the time literals of
{yyyy-MM-dd HH:mm:ss.SSS}.
I would like to propose the SQLiteConfig class define the appropriate static instances of
DEFAULT_DATE_STRING_FORMAT, DEFAULT_TIME_STRING_FORMAT, & DEFAULT_TIMESTAMP_STRING_FORMAT along
with associated instances to be used in the resultSet returns for getDate(), getTime(), and
getTimeStamp(). It appears the setting methods are working appropriately.
If this is acceptable then I could perform the coding and submit for review and update. Perhaps
this issue is similar to open #18?
Thank you for your work in keeping the best option for the sqlite-jdbc current.
Dana Proctor
MyJSQLView Project Manager
The text was updated successfully, but these errors were encountered: