File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,9 @@ function execute(
128
128
result_status = libpq_c. PQresultStatus (result)
129
129
130
130
if result_status != libpq_c. PGRES_COPY_OUT
131
- if ! (result_status in (libpq_c. PGRES_BAD_RESPONSE, libpq_c. PGRES_FATAL_ERROR))
132
- level (LOGGER, Errors. JLResultError (
133
- " Expected PGRES_COPY_OUT after COPY query, got $result_status "
134
- ))
135
- end
131
+ level (LOGGER, Errors. JLResultError (
132
+ " Expected PGRES_COPY_OUT after COPY query, got $result_status "
133
+ ))
136
134
return result
137
135
end
138
136
@@ -148,11 +146,7 @@ function execute(
148
146
end
149
147
end
150
148
seekstart (io) # rewind iobuffer so future user read will begin from start
151
- if - 2 == status_code
152
- level (LOGGER, Errors. JLResultError (
153
- " PQgetCopyData error: $(error_message (jl_conn)) "
154
- ))
155
- end
149
+ - 2 == status_code && level (LOGGER, Errors. JLResultError (" PQgetCopyData error: $(error_message (jl_conn)) " ))
156
150
157
151
libpq_c. PQgetResult (jl_conn. conn)
158
152
end
You can’t perform that action at this time.
0 commit comments