Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Implement batch binary inputs #219

Merged
merged 7 commits into from Nov 1, 2016
Merged

Conversation

jimhester
Copy link
Contributor

Similar to #214 this adds binding support for std::vector<std::vector<uint8_t>> inputs, which allows you to bind batches of arbitrary binary data. We could not use the bind_strings() for this as there could be embedded nulls in the data, as pointed out by https://github.com/lexicalunit/nanodbc/issues/209.

@jimhester
Copy link
Contributor Author

Tests seem to be working for everything but MS-SQL, I will try and figure out what needs to change tomorrow, if you have any idea what might be wrong let me know.

jimhester added a commit to jimhester/nanodbc that referenced this pull request Oct 27, 2016
}
}
bind_parameter(param, binary_data_[param].data(), elements, data_type, param_type, max_len, scale);
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you convert to 4 spaces for indention before finalizing the PR?

@lexicalunit
Copy link
Owner

@jimhester unfortunately I have the least amount of experience of all with MSSQL. Thank you for looking into it and all your effort improving this library :)

@jimhester
Copy link
Contributor Author

Tests now passing, MS-SQL must need a default size for varbinary, or have a default less than 4.

@mloskot
Copy link
Contributor

mloskot commented Oct 31, 2016

@jimhester Sorry for the PITA and braking your PR ;-) I'm going to submit PR fixing the conflicts.

@mloskot
Copy link
Contributor

mloskot commented Oct 31, 2016

LGTM.

I take @lexicalunit 's #219 (comment) as approval notice.

@jimhester are you still working on it or is it ready to merge?

@jimhester
Copy link
Contributor Author

It is ready if it looks good to you!

@mloskot mloskot merged commit f82c1b8 into lexicalunit:master Nov 1, 2016
jimhester added a commit to jimhester/odbc that referenced this pull request Jul 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants