summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_multiple_schemata.py
diff options
context:
space:
mode:
authorkoljonen <koljonen@outlook.com>2016-06-30 00:41:54 +0200
committerJoakim Koljonen <koljonen@Joakims-MacBook-Pro-2.local>2016-07-06 20:03:24 +0200
commitf09bb42d67d879ef292a8dc9654f41308fd1a6d8 (patch)
tree7258baf716759464dbe423a46d4d6fffe1daa854 /tests/test_smart_completion_multiple_schemata.py
parent1605bf1cdb7c4f7bd10f3f215451195d3286fedf (diff)
Better scoping for tables in insert statements
This commit makes it so that given `INSERT INTO foo(<cursor1>) SELECT <cursor2> FROM bar;`, we suggest `bar` columns for `<cursor2>` and `foo` columns for `<cursor1>`. Previous behaviour is sugggesting columns from both tables in both cases.
Diffstat (limited to 'tests/test_smart_completion_multiple_schemata.py')
-rw-r--r--tests/test_smart_completion_multiple_schemata.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/test_smart_completion_multiple_schemata.py b/tests/test_smart_completion_multiple_schemata.py
index efa00f3c..cd3b65ba 100644
--- a/tests/test_smart_completion_multiple_schemata.py
+++ b/tests/test_smart_completion_multiple_schemata.py
@@ -4,7 +4,6 @@ import itertools
from metadata import (MetaData, alias, name_join, fk_join, join,
schema, table, function, wildcard_expansion)
from prompt_toolkit.document import Document
-from pgcli.packages.function_metadata import FunctionMetadata, ForeignKey
metadata = {
'tables': {