|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2004, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.118 2004/11/05 19:16:22 tgl Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.119 2004/12/24 15:42:05 tgl Exp $ |
7 | 7 | */
|
8 | 8 |
|
9 | 9 | /*----------------------------------------------------------------------
|
@@ -1807,11 +1807,11 @@ _complete_from_query(int is_schema_query, const char *text, int state)
|
1807 | 1807 | if (completion_squery->selcondition)
|
1808 | 1808 | appendPQExpBuffer(&query_buffer,"%s AND ",
|
1809 | 1809 | completion_squery->selcondition);
|
1810 |
| -appendPQExpBuffer(&query_buffer,"%s AND ", |
1811 |
| -completion_squery->viscondition); |
1812 | 1810 | appendPQExpBuffer(&query_buffer,"substring(%s,1,%d)='%s'",
|
1813 | 1811 | completion_squery->result,
|
1814 | 1812 | string_length,e_text);
|
| 1813 | +appendPQExpBuffer(&query_buffer," AND %s", |
| 1814 | +completion_squery->viscondition); |
1815 | 1815 |
|
1816 | 1816 | /*
|
1817 | 1817 | * When fetching relation names, suppress system catalogs
|
|