Title: CSV import removes embedded line breaks from quoted fields · Issue #42 · oracle/sql-developer-vscode · GitHub
Open Graph Title: CSV import removes embedded line breaks from quoted fields · Issue #42 · oracle/sql-developer-vscode
X Title: CSV import removes embedded line breaks from quoted fields · Issue #42 · oracle/sql-developer-vscode
Description: CSV import removes embedded line breaks from quoted fields Description When importing a CSV file using the File Import feature in Oracle SQL Developer for VS Code, embedded line breaks inside quoted fields are removed from the imported v...
Open Graph Description: CSV import removes embedded line breaks from quoted fields Description When importing a CSV file using the File Import feature in Oracle SQL Developer for VS Code, embedded line breaks inside quote...
X Description: CSV import removes embedded line breaks from quoted fields Description When importing a CSV file using the File Import feature in Oracle SQL Developer for VS Code, embedded line breaks inside quote...
Opengraph URL: https://github.com/oracle/sql-developer-vscode/issues/42
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSV import removes embedded line breaks from quoted fields","articleBody":"# CSV import removes embedded line breaks from quoted fields\n\n## Description\n\nWhen importing a CSV file using the **File Import** feature in Oracle SQL Developer for VS Code, embedded line breaks inside quoted fields are removed from the imported values.\n\nExample CSV record:\n\n```csv\n1;\"First line\nSecond line\";ABC\n```\n\nThe second field is enclosed in double quotes and contains a valid embedded line break.\n\n## Actual behavior\n\nThe record is imported, but the embedded line break is removed. After the import, the target column contains neither `CHR(10)` nor `CHR(13)`, as verified with Oracle's `DUMP()` and `INSTR()` functions.\n\nThe issue occurs with:\n\n- CRLF inside the quoted field\n- LF inside the quoted field\n- CR inside the quoted field\n- manually recreated line breaks\n- all available **Line terminator** settings in the import dialog:\n - standard: CR LF, CR or LF\n - Unix/Mac LF\n - Windows CR LF\n - CR\n - `{EOL}`\n\nThe same data can be imported correctly using another CSV import tool.\n\n## Expected behavior\n\nThe CSV parser should distinguish between:\n\n1. a line terminator outside quoted fields, which ends a CSV record; and\n2. a line terminator inside a field enclosed in double quotes, which is part of the field value.\n\nWhile the parser is inside a quoted field, CR, LF, and CRLF characters must be preserved as field content. The parser should continue reading across physical lines until the matching closing quote is reached. Escaped double quotes inside the field must also be handled correctly.\n\nThe selected **Line terminator** setting should only determine the boundary between CSV records outside quoted fields. It should not cause embedded line breaks inside quoted fields to be removed or interpreted as record boundaries.\n\n## Steps to reproduce\n\n1. Create a UTF-8 encoded CSV file with the following content:\n\n ```csv\n \"ID\";\"TEXT_VALUE\";\"CODE\"\n \"1\";\"First line\n Second line\";\"ABC\"\n ```\n\n2. Start the File Import wizard in Oracle SQL Developer for VS Code.\n3. Select semicolon as the field delimiter and double quotes as the text enclosure.\n4. Import the file into a table with a character column for `TEXT_VALUE`.\n5. Check the imported value with:\n\n ```sql\n select\n instr(text_value, chr(10)) as lf_position\n , instr(text_value, chr(13)) as cr_position\n , dump(text_value, 1016) as dump_hex\n from target_table\n where id = 1\n ;\n ```\n\n## Result\n\nNeither `CHR(10)` nor `CHR(13)` is present in the imported value. The embedded line break has been removed.\n\n## Additional information\n\nThe issue was reproduced with both the original CSV file and a separately generated UTF-8 test file. The embedded line breaks were also removed and manually recreated to ensure that the test used known line-ending characters.\n\nReplacing embedded line breaks with a textual placeholder before import works. Replacing that placeholder with `CHR(10)` after import produces the expected database value. This indicates that the issue is in the CSV parsing or import process rather than in the target column, database storage, or result display.\n\n## Environment\n\n- Oracle SQL Developer for VS Code extension version: `26.3.0`\n- VS Code version: `1.130.0`\n- Operating system: `win11`\n- Oracle Database version: `19C SE`\n- CSV encoding: UTF-8\n- Field delimiter: semicolon\n- Text enclosure: double quote\n\n\n","author":{"url":"https://github.com/pawel-fsw","@type":"Person","name":"pawel-fsw"},"datePublished":"2026-10-28T15:51:03Z","url":"https://github.com/oracle/sql-developer-vscode/issues/42"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:119b5bba-25ca-ea4f-f042-1bd95190ecfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB92:9136E:1C0471:2652F9:6B044AD2 |
| html-safe-nonce | f588aa10a1b07830dee8dad680b00f800e5b1853af9ae0484765c92180c1fa90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjkyOjkxMzZFOjFDMDQ3MToyNjUyRjk6NkIwNDRBRDIiLCJ2aXNpdG9yX2lkIjoiMjE2ODA3NTYyMTM4ODAxMjI0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48efc98ca2cc84fd7327ec6edc8617f826a4963dbf3d371dfe684c6ece1527b2 |
| hovercard-subject-tag | issue:6082464174 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oracle/sql-developer-vscode/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/924d54f1c1ab715ecc8562b95535f5f66cc2e42ac869d01eb9c5733282173551/oracle/sql-developer-vscode/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/924d54f1c1ab715ecc8562b95535f5f66cc2e42ac869d01eb9c5733282173551/oracle/sql-developer-vscode/issues/42 |
| og:image:alt | CSV import removes embedded line breaks from quoted fields Description When importing a CSV file using the File Import feature in Oracle SQL Developer for VS Code, embedded line breaks inside quote... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pawel-fsw |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/oracle/sql-developer-vscode git https://github.com/oracle/sql-developer-vscode.git |
| octolytics-dimension-user_id | 4430336 |
| octolytics-dimension-user_login | oracle |
| octolytics-dimension-repository_id | 996875857 |
| octolytics-dimension-repository_nwo | oracle/sql-developer-vscode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 996875857 |
| octolytics-dimension-repository_network_root_nwo | oracle/sql-developer-vscode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width