ext/statement.cc in swift-0.13.0 vs ext/statement.cc in swift-0.14.0

- old
+ new

@@ -54,10 +54,10 @@ query.statement = statement; if (RARRAY_LEN(bind_values) > 0) query_bind_values(&query, bind_values); if (dbi::_trace) dbi::logMessage(dbi::_trace_fd, dbi::formatParams(statement->command(), query.bind)); if (rb_thread_blocking_region(((VALUE (*)(void*))query_execute_statement), &query, RUBY_UBF_IO, 0) == Qfalse) - rb_raise(eSwiftRuntimeError, "%s", query.error); + rb_raise(query.error_klass, "%s", query.error_message); } CATCH_DBI_EXCEPTIONS(); StatementWrapper *handle; Data_Get_Struct(self, StatementWrapper, handle);