Skip to content
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

Fast EOL Conversion #170

Open
martindsouza opened this issue Sep 21, 2017 · 0 comments
Open

Fast EOL Conversion #170

martindsouza opened this issue Sep 21, 2017 · 0 comments
Assignees
Milestone

Comments

@martindsouza
Copy link
Member

martindsouza commented Sep 21, 2017

Right now to simplify EOL conversions can do the following:

regexp_replace(l_str, '[' || gc_cr || gc_lf || ']+', gc_crlf); where l_str can be a string or a clob. On large files this takes a long time.

Can do the same thing using:

replace(replace(replace(replace(l_str, gc_crlf, gc_lf), gc_lfcr, gc_lf), gc_cr, gc_lf), gc_lf, gc_crlf); and it's very quick for LOBs.

Create a function that takes in p_str which can be a clob varchar2 as well as desired EOL set (ex: lf) and returns the value.

Similar tickets:

@martindsouza martindsouza added this to the 1.1.0 milestone Sep 21, 2017
@martindsouza martindsouza self-assigned this Sep 21, 2017
martindsouza added a commit that referenced this issue Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant