Augment test coverage in PL/Python, especially for error conditions.

This commit is contained in:
Peter Eisentraut
2009-08-13 20:50:05 +00:00
parent 501255114d
commit cfe380a6dd
14 changed files with 573 additions and 34 deletions

View File

@ -19,3 +19,18 @@ return words'
LANGUAGE plpythonu;
select argument_test_one(users, fname, lname) from users where lname = 'doe' order by 1;
CREATE FUNCTION elog_test() RETURNS void
AS $$
plpy.debug('debug')
plpy.log('log')
plpy.info('info')
plpy.info(37)
plpy.info('info', 37, [1, 2, 3])
plpy.notice('notice')
plpy.warning('warning')
plpy.error('error')
$$ LANGUAGE plpythonu;
SELECT elog_test();