keboola / php-db-import

MIT License
4 stars 0 forks source link

Don't drop temporary table in exception handling #8

Closed Halama closed 8 years ago

Halama commented 8 years ago

https://github.com/keboola/php-db-import/blob/5717f7b8aa02f20682f059a7552caaad73398d44/src/RedshiftBase.php#L72

It is causing SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction error and hiding original error exception.

Now we are using real temp tables so the temp table will be automatically deleted at the end of session.