{"action":"created","issue":{"url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/641","labels_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/641/comments","events_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/641/events","html_url":"https://github.com/pgmodeler/pgmodeler/issues/641","id":62697616,"number":641,"title":"Import error from a constraint trigger","user":{"login":"oranki","id":1177227,"avatar_url":"https://avatars.githubusercontent.com/u/1177227?v=3","gravatar_id":"","url":"https://api.github.com/users/oranki","html_url":"https://github.com/oranki","followers_url":"https://api.github.com/users/oranki/followers","following_url":"https://api.github.com/users/oranki/following{/other_user}","gists_url":"https://api.github.com/users/oranki/gists{/gist_id}","starred_url":"https://api.github.com/users/oranki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oranki/subscriptions","organizations_url":"https://api.github.com/users/oranki/orgs","repos_url":"https://api.github.com/users/oranki/repos","events_url":"https://api.github.com/users/oranki/events{/privacy}","received_events_url":"https://api.github.com/users/oranki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-18T13:45:45Z","updated_at":"2015-03-18T14:23:03Z","closed_at":null,"body":"Following SQL in schema triggers the bug:\r\n\r\n```sql\r\nCREATE CONSTRAINT TRIGGER check_test_id_trig\r\n    AFTER INSERT ON public.test\r\n    INITIALLY DEFERRED\r\n    FOR EACH ROW EXECUTE PROCEDURE check_test_id();\r\n```\r\n\r\n![pgmodeler_import_error](https://cloud.githubusercontent.com/assets/1177227/6709761/7586f5b2-cd84-11e4-95b4-d7b09dde4533.png)\r\n\r\npgModeler running on Linux, compiled from source with git tree HEAD at 76709b73a7. PostgreSQL is 9.3 and the problematic SQL in question works otherwise as intended."},"comment":{"url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/comments/82994454","html_url":"https://github.com/pgmodeler/pgmodeler/issues/641#issuecomment-82994454","issue_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/641","id":82994454,"user":{"login":"rkhaotix","id":2205476,"avatar_url":"https://avatars.githubusercontent.com/u/2205476?v=3","gravatar_id":"","url":"https://api.github.com/users/rkhaotix","html_url":"https://github.com/rkhaotix","followers_url":"https://api.github.com/users/rkhaotix/followers","following_url":"https://api.github.com/users/rkhaotix/following{/other_user}","gists_url":"https://api.github.com/users/rkhaotix/gists{/gist_id}","starred_url":"https://api.github.com/users/rkhaotix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkhaotix/subscriptions","organizations_url":"https://api.github.com/users/rkhaotix/orgs","repos_url":"https://api.github.com/users/rkhaotix/repos","events_url":"https://api.github.com/users/rkhaotix/events{/privacy}","received_events_url":"https://api.github.com/users/rkhaotix/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T14:23:03Z","updated_at":"2015-03-18T14:23:03Z","body":"Thanks. I'll test it ASAP!"}}