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

defncopy - Unable to export any view from SQL 2016 with v1.00.80 #183

Closed
theangryangel opened this issue Dec 22, 2017 · 2 comments
Closed

Comments

@theangryangel
Copy link

theangryangel commented Dec 22, 2017

Forgive what is probably a support question, but I swear I've had defncopy export views without issue before.

Using 1.00.80 any view I point it at I get an assertion error. Unfortunately with my blurry Friday-before-Christmas eyes I'm struggling to figure out why. Even the following;

create view _defncopy_test as 
select 1 as value

results in

defncopy: defncopy.c:578: print_results: Assertion `sizeof(sql_text) > dbcollen(dbproc, ctext)' failed.

I'm happy to continue digging into it and provide a patch, but I need a quick pointer in the right direction as I'm just not following properly.

@freddy77
Copy link
Contributor

freddy77 commented Dec 22, 2017 via email

@freddy77
Copy link
Contributor

Increase just a bit the output buffer (sql_text) in order to make sure the possible converted string fits in it.
Thanks, 1.00.81 should be generated automatically tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants