| 277 | } |
| 278 | |
| 279 | lbug_state lbug_prepared_statement_bind_value(lbug_prepared_statement* prepared_statement, |
| 280 | const char* param_name, lbug_value* value) { |
| 281 | try { |
| 282 | auto value_ptr = std::make_unique<Value>(*static_cast<Value*>(value->_value)); |
| 283 | lbug_prepared_statement_bind_cpp_value(prepared_statement, param_name, |
| 284 | std::move(value_ptr)); |
| 285 | return LbugSuccess; |
| 286 | } catch (Exception& e) { |
| 287 | return LbugError; |
| 288 | } |
| 289 | } |