-
Notifications
You must be signed in to change notification settings - Fork 240
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
stream_to
uses quote_name
as 2 argument function
#853
Comments
That does look like an obscure function that has escaped notice... I don't know why you're getting the error but I never got one. It's not a 7.9.x change. What compiler is this, and did this happen while compiling libpqxx or some other code that uses libpqxx? It looks like you're compiling some different code, perhaps because of conditional compilation or something. |
Ah, I see (part of) what happened: this is a deprecated constructor. Don't use it. Use the I'll see if I can fix the function, but this bug seems to have been there for years without anybody else complaining. So I'm kind of inclined to just get rid of it. |
Fixes: #853 This has been broken (at compile time!) for _years_ but someone finally noticed. It's a deprecated constructor, so perhaps I ought to delete it rather than fix it.
Looked to be simply a closing parenthesis that was in the wrong place. Have you got a test case that I can run against this? |
Nothing public or something I could easily share, but I can test it if you cut a release. I'll also update the code - looks like we hadn't updated the library version for a very long time. |
Applying this change, I ran into another compile issue because |
Fixes: #853 This has been broken (at compile time!) for _years_ but someone finally noticed. It's a deprecated constructor, so perhaps I ought to delete it rather than fix it.
Alright — I'll get rd of it. It was always a bit weird and awkward anyway, passing a series of column names as a pair of iterators. In C++20 we get better ways of doing that. |
libpqxx/include/pqxx/stream_to.hxx
Line 484 in 29bad08
causes this compile error:
I do not see a two argument version defined - I assume this might have broken with the 7.9.x changes?
The text was updated successfully, but these errors were encountered: