)]}'
{"migrate/versioning/script/sql.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"d91226953394c2e695d657a43b4583d40b69da4b","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                # not all drivers reliably handle multistatement queries or"},{"line_number":40,"context_line":"                # commands passed to .execute(), so split them and execute one"},{"line_number":41,"context_line":"                # by one"},{"line_number":42,"context_line":"                for statement in filter(None, text.strip().split(\u0027;\u0027)):"},{"line_number":43,"context_line":"                    conn.execute(statement)"},{"line_number":44,"context_line":"                trans.commit()"},{"line_number":45,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_c4c27153","line":42,"updated":"2014-08-01 11:49:14.000000000","message":"Will following code be more convenient in order to remove white characters from executed code?\n\n for statement in [x.strip() for x in text.strip().split(\u0027;\u0027) if x]:\n     ...","commit_id":"d5fb7dbbb5f89b74628248b267bd29dc18f7a260"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a16fdaffa15c6c1437234ee0a2e25e4c1c47a2a9","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                # not all drivers reliably handle multistatement queries or"},{"line_number":40,"context_line":"                # commands passed to .execute(), so split them and execute one"},{"line_number":41,"context_line":"                # by one"},{"line_number":42,"context_line":"                for statement in filter(None, text.strip().split(\u0027;\u0027)):"},{"line_number":43,"context_line":"                    conn.execute(statement)"},{"line_number":44,"context_line":"                trans.commit()"},{"line_number":45,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_97f429d0","line":42,"in_reply_to":"baada198_c4c27153","updated":"2014-08-01 12:13:15.000000000","message":"The idea is not to remove white characters (they work fine), strip() is just to make sure blank line at the end of file does not state for a separate statement that will fail on execute().","commit_id":"d5fb7dbbb5f89b74628248b267bd29dc18f7a260"},{"author":{"_account_id":11279,"name":"Angus Lees","email":"gus@inodes.org","username":"gus"},"change_message_id":"ac3e3f5b81aedcfa4c468c16470c79f72252c004","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            trans \u003d conn.begin()"},{"line_number":38,"context_line":"            try:"},{"line_number":39,"context_line":"                dbapi \u003d conn.engine.raw_connection()"},{"line_number":40,"context_line":"                # NOTE(ihrachys): script may contain multiple statements, and"},{"line_number":41,"context_line":"                # not all drivers reliably handle multistatement queries or"},{"line_number":42,"context_line":"                # commands passed to .execute(), so split them and execute one"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_745cc64b","line":39,"updated":"2014-08-22 00:26:44.000000000","message":"dbapi is now unused afaics","commit_id":"9bafa4424d6187c8e54491ae694bf9145843cede"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f65cc104910f9dde945e8c405aafd539caeec708","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            trans \u003d conn.begin()"},{"line_number":38,"context_line":"            try:"},{"line_number":39,"context_line":"                dbapi \u003d conn.engine.raw_connection()"},{"line_number":40,"context_line":"                # NOTE(ihrachys): script may contain multiple statements, and"},{"line_number":41,"context_line":"                # not all drivers reliably handle multistatement queries or"},{"line_number":42,"context_line":"                # commands passed to .execute(), so split them and execute one"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_3175eeca","line":39,"in_reply_to":"1abeadc6_745cc64b","updated":"2014-08-22 11:49:36.000000000","message":"Indeed.","commit_id":"9bafa4424d6187c8e54491ae694bf9145843cede"}]}
