Psycopg 3 throws a generic ProgramimgError, so core.py has trouble
reporting the problem. Perhaps this can be solved by creating a
generic PreparedStmt class at the core level, but this works for
the moment.
from pgwui_upload_core.views.upload import (
UploadCoreInitialPost,
BaseTableUploadHandler,
+ match_insert_to_dataline,
set_upload_response,
)
udl An UploadDataLine instance
'''
- self.param_execute(self.insert_stmt, udl)
+ match_insert_to_dataline(udl, self.insert_stmt)
+ self.param_execute(self.insert_stmt.stmt, udl)
class TableUploadHandler(BaseTableUploadHandler):