mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fixed the bug that caused pg query crashes
This commit is contained in:
parent
6464ce423e
commit
cf8fa8fa47
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class PostgresqlQueryService
|
|||
result = connection.exec(query_text)
|
||||
|
||||
rescue StandardError => e
|
||||
reset_connection(data_source) if connection.finished?
|
||||
reset_connection(data_source) if connection&.finished?
|
||||
|
||||
puts e
|
||||
error = { message: e.message }
|
||||
|
|
|
|||
Loading…
Reference in a new issue