-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
OCI Driver should convert date times with fractional seconds to int #11057
Comments
Instead of dropping the fractional seconds, I think that GDAL could try to create the field with a proper parameter for fractional seconds https://www.oracletutorial.com/oracle-basics/oracle-timestamp/. I also believe that for some users your test case "Insert a feature from geojson containing datetime into an oracle layer will error" might work depending on the value of the NLS_TIMESTAMP_FORMAT. Please add what NLS_TIMESTAMP_FORMAT value you have, and how many decimals do you have in the GeoJSON data. |
… milliseconds Fixes OSGeo#11057
Just getting to build gdal oci plugin after this update and still getting the error.
Source data example (coming from geopackage 1.4):
and result with CPL_DEBUG=ON (some lines with credentials removed)
|
ok, could reproduce. Here the issue was related to timezones. Fixed per #11342 |
What is the bug?
When an OFTDateTime field is created, it is created as a TIMESTAMP
As such, any DateTime field inserts, should convert the second (which are now a floating point) to an int to avoid ORA-01830: date format picture ends before converting entire input string
Steps to reproduce the issue
Insert a feature from geojson containing datetime into an oracle layer will error
Versions and provenance
3.9 and master
Additional context
No response
The text was updated successfully, but these errors were encountered: