Mercurial > sqlpython
changeset 510:c8de86e7cd06
lambdas for calling code objects
author | catherine.devlin@gmail.com |
---|---|
date | Fri, 24 Sep 2010 19:00:37 -0400 |
parents | 85495d4d6c73 |
children | 9dbf99653136 |
files | sqlpython/connections.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpython/connections.py Thu Sep 23 12:52:56 2010 -0400 +++ b/sqlpython/connections.py Fri Sep 24 19:00:37 2010 -0400 @@ -437,12 +437,11 @@ 'VIEW': gerald.oracle_schema.View, 'TRIGGER': gerald.oracle_schema.Trigger, 'SEQUENCE': gerald.oracle_schema.Sequence, - 'PACKAGE': gerald.oracle_schema.Package, + 'PACKAGE': lambda name, cursor, owner: gerald.oracle_schema.Package(name, 'PACKAGE', cursor, owner), 'DATABASE LINK': gerald.oracle_schema.DatabaseLink, - 'FUNCTION': gerald.oracle_schema.CodeObject, - 'PROCEDURE': gerald.oracle_schema.CodeObject + 'FUNCTION': lambda name, cursor, owner: gerald.oracle_schema.CodeObject(name, 'FUNCTION', cursor, owner), + 'PROCEDURE': lambda name, cursor, owner: gerald.oracle_schema.CodeObject(name, 'PROCEDURE', cursor, owner), } - if __name__ == '__main__': doctest.testmod()