fluiddb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FluidDb/Firebird.rb +6 -6
- metadata +1 -1
data/lib/FluidDb/Firebird.rb
CHANGED
@@ -105,10 +105,10 @@ module FluidDb
|
|
105
105
|
affected_rows != expected_affected_rows then
|
106
106
|
raise ExpectedAffectedRowsError.new( "Expected affected rows, #{expected_affected_rows}, Actual affected rows, #{affected_rows}")
|
107
107
|
end
|
108
|
-
rescue PG::Error => e
|
109
|
-
raise DuplicateKeyError.new( e.message ) unless e.message.index( "duplicate key value violates unique constraint" ).nil?
|
108
|
+
# rescue PG::Error => e
|
109
|
+
# raise DuplicateKeyError.new( e.message ) unless e.message.index( "duplicate key value violates unique constraint" ).nil?
|
110
110
|
|
111
|
-
raise e
|
111
|
+
# raise e
|
112
112
|
end
|
113
113
|
|
114
114
|
def exec_params( sql, params, expected_affected_rows=nil )
|
@@ -124,10 +124,10 @@ module FluidDb
|
|
124
124
|
affected_rows != expected_affected_rows then
|
125
125
|
raise ExpectedAffectedRowsError.new( "Expected affected rows, #{expected_affected_rows}, Actual affected rows, #{affected_rows}")
|
126
126
|
end
|
127
|
-
rescue PG::Error => e
|
128
|
-
raise DuplicateKeyError.new( e.message ) unless e.message.index( "duplicate key value violates unique constraint" ).nil?
|
127
|
+
# rescue PG::Error => e
|
128
|
+
# raise DuplicateKeyError.new( e.message ) unless e.message.index( "duplicate key value violates unique constraint" ).nil?
|
129
129
|
|
130
|
-
raise e
|
130
|
+
# raise e
|
131
131
|
end
|
132
132
|
|
133
133
|
def insert( sql, params )
|