Code Monkey home page Code Monkey logo

edba's People

Contributors

antlad avatar tarasko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edba's Issues

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

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);

Ability to log query before it is executed

Currently session monitor only has hooks that are called after the statement or query is executed. Sometimes it is handy to have hooks that are executed before. For example such hook will make it possible to see exactly what query hanged without waiting a timeout or attaching a debugger..

Multithreading issue: Connection is busy

E1114 16:44:30.628938 7360 pnl_context.cpp:238] Scenarios for BAM(22182) failed to evaluate Dynamic exception type: class edba::edba_error
std::exception::what: edba::backend::odbc SQLExecute failed with error [Microsoft][SQL Server Native Client 10.0]Connection is busy with results for another command (0)

Exception when attempt to bind string to a query

Driver: ODBC
Database: MSSQL 2008

Dynamic exception type: class boost::exception_detail::clone_impl<struct boost::
exception_detail::error_info_injector >
std::exception::what: edba::odbc_backend::Failed with error `[Microsoft][SQL Ser
ver Native Client 10.0][SQL Server]The data types varchar and text are incompati
ble in the equal to operator.
[Microsoft][SQL Server Native Client 10.0][SQL Server]Statement(s) could not be
prepared.'
[struct sbt::datav2::error_infos::tag_country *] = RU
[struct sbt::datav2::error_infos::tag_stored_proc_name *] = ftapi_GetCountrySect
orIndex

SELECT INSTRUMENT_ID FROM [INDEX] WHERE NAME = :index_name

INSTRUMENT_ID – NUMERIC(18,0)
NAME – VARCHAR(150)

index_name – std::string

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.