Repository navigation
Size Oracle DATE columns like DATETIME in IPAC-table output - #34
Merged
Merged
Conversation
cx_Oracle 8 reports DATE columns as DB_TYPE_DATE, which matched only the 'DATE' check, so the IPAC writer gave them a fixed 14-character width. Oracle DATE values include a time of day (YYYY-MM-DD HH:MM:SS), so every IPAC-format query returning a DATE column failed with "overflows column width [14 char]". cx_Oracle 7 reported these as DATETIME (30 characters); restore that. CSV and VOTable output were unaffected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With cx_Oracle 8,
cursor.descriptionreports OracleDATEcolumns asDB_TYPE_DATE. Inwriteresult.pythat matched only theDATEcheck, which gives a fixed 14-character width. OracleDATEvalues carry a time of day, so they format to 19 characters. As a result, everyformat=ipacquery that returns aDATEcolumn fails with HTTP 400:cx_Oracle 7 reported these columns as
DATETIME, which gets 30 characters. This change restores that for Oracle. CSV and VOTable output were unaffected.Tested on the NEID archive (cx_Oracle 8.3.0):
select * ... format=ipacreturns 200 again onneidl0,neidl1,neidl2andneidsolarl2, andnightdateis written as a 30-character column.🤖 Generated with Claude Code