Skip to content

Commit

Permalink
test for issue #68
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Feb 25, 2024
1 parent 5130796 commit 6690c19
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions firebirdsql/tests/test_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ def setUp(self):
SUSPEND;
END
''')
cur.execute('''
CREATE EXCEPTION ex1 'message';
''')
cur.execute('''
CREATE PROCEDURE error_during_fetch
RETURNS (out VARCHAR(30))
AS
BEGIN
SUSPEND;
EXCEPTION ex1;
END
''')
self.connection.commit()

# 3 records insert
Expand Down Expand Up @@ -116,3 +128,8 @@ def test_prep_insert_returning(self):
cur.execute(prep, (5, ))
self.assertEqual(cur.fetchone()[0], datetime.date(1967, 8, 11))
cur.close()

def test_errro_proc(self):
cur = self.connection.cursor()
for r in cur.execute("select out from error_during_fetch"):
pass

0 comments on commit 6690c19

Please # to comment.