summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_multiple_schemata.py
diff options
context:
space:
mode:
authorkoljonen <koljonen@outlook.com>2016-05-25 13:01:57 +0200
committerkoljonen <koljonen@outlook.com>2016-06-02 01:44:31 +0200
commit5d9dfcdcc3e6049942e35f9e3bfb831aace5f824 (patch)
tree47e9f7566048dd25d7d5bdae82d6d3a803c8c7b4 /tests/test_smart_completion_multiple_schemata.py
parentf912633d6ded6ed563f8b8ba88525839afa20031 (diff)
Use pg_proc.proargmodes &c. instead of parsing arg_list
Getting the parameters from proargnames, proallargtypes and proargmodes instead of from parsing the arg_list string simplifies FunctionMetadata quite a bit. I also made the ColumnMetadata for table/view columns use the same format for the type (i.e. regtype instead of typname). This means we now get join-condition suggestions for joining tables/views to functions, which didn't work before.
Diffstat (limited to 'tests/test_smart_completion_multiple_schemata.py')
-rw-r--r--tests/test_smart_completion_multiple_schemata.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_smart_completion_multiple_schemata.py b/tests/test_smart_completion_multiple_schemata.py
index 60781ffe..c107a710 100644
--- a/tests/test_smart_completion_multiple_schemata.py
+++ b/tests/test_smart_completion_multiple_schemata.py
@@ -22,16 +22,16 @@ metadata = {
}},
'functions': {
'public': [
- ['func1', '', '', False, False, False],
- ['func2', '', '', False, False, False]],
+ ['func1', [], [], [], '', False, False,
+ False],
+ ['func2', [], [], [], '', False, False,
+ False]],
'custom': [
- ['func3', '', '', False, False, False],
- ['set_returning_func',
- 'OUT x INT', 'SETOF INT',
- False, False, True]],
+ ['func3', [], [], [], '', False, False, False],
+ ['set_returning_func', ['x'], ['integer'], ['o'],
+ 'integer', False, False, True]],
'Custom': [
- ['func4', '', '', False, False, False]
- ]
+ ['func4', [], [], [], '', False, False, False]]
},
'datatypes': {
'public': ['typ1', 'typ2'],