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

Ability to specify actual database type when bind parameter to a query #13

Open
tarasko opened this issue Nov 17, 2013 · 0 comments
Open

Comments

@tarasko
Copy link
Owner

tarasko commented Nov 17, 2013

From backends_smoke_test.cpp

// Oracle require explicit specification which type we going to bind: BLOB or CLOB, 
// istreams in oracle backend are always bound as BLOBs, that is why you can`t bind to anything except blob columns 
// in database. Actually the same problem we have with odbc drivers that don`t support SQLDescribeParam. 
// Fortunally MSSQL driver support it.

edba try to guess database type specifically in each backend and in most time it is done very well, but that`s not enought. Frontend should allow user to specify which database type has parameter during binding. Possible syntax:

st << use("name", value, dbt_blob);
st.bind("name", value, dbt_clob);

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

1 participant