Hi all, I have 2 tables: - info (id: integer, cfg: integer) - info_with_error (id:integer, cfg: varchar(32))
I'd like to check the query before inserting into table. For instance: if I build this query: INSERT INTO info VALUES("STRING") I d like to catch the warning generated during the insertion: Warning: Incorrect integer value: 'STRING' for column 'cfg' at row 1 cursor.execute(statement, parameters) If my query has an error, i put the query in the table info_with_error... I hope it's clear enougth How can I do that? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---