SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

error 101 in insert query

Open bnadem opened this issue 6 years ago • 0 comments

i becomme 101 error , after search "#define SQLITE_DONE 101 /* sqlite3_step() has finished executing */" but in getErrórMsg i become unknow error ,

code block is like try { //insert statement .... //insert with bind value if(!insert.exect()){ std::cout<< "getErrorMsg:"<<m_db.getErrorMsg<<std::endl; /* her i become unnown error !!!!!! / } return (SQLITE_DONE == m_db.getErrorCode() ); }catch (std::execption & e) { std::cout<< e.what() <<std::endl; / i becomme UNIQUE CONSTRAINT failed USER:EMAI....*/ return (SQLITE_DONE == m_db.getErrorCode() ); }

bnadem avatar Sep 10 '19 08:09 bnadem