ext/swift.h in swift-0.7.1 vs ext/swift.h in swift-0.7.2
- old
+ new
@@ -19,9 +19,12 @@
catch (dbi::ConnectionError &error) { \
rb_raise(eSwiftConnectionError, "%s", error.what()); \
} \
catch (dbi::Error &error) { \
rb_raise(eSwiftRuntimeError, "%s", error.what()); \
+ } \
+ catch (std::bad_alloc &error) { \
+ rb_raise(rb_eNoMemError, "%s", error.what()); \
}
#include "adapter.h"
#include "iostream.h"
#include "query.h"