Lines Matching refs:column

15 "     - Jonas Enberg - if no table is found when using column completion
36 " - NF: When completing column lists or drilling into a table
38 " only the table name would be replaced with the column
40 " - NF: When completing column lists using table aliases
44 " - BF: When completing column lists or drilling into a table
46 " column list could often not be found for the table.
48 " would be replaced for column and column list options.
51 " - Partial column name completion did not work when a table
53 " - Improved the handling of column completion. First we match any
84 " aliases for more robust table name and column name code completion.
90 " when drilling in and out of a column list for a table.
140 " Used with the column list
206 " Check if the first character is a ".", for column completion
222 \ compl_type =~ 'column\|table\|view\|procedure'
228 " If lastword has already been set for column completion
233 if lastword != -1 && compl_type == 'column'
237 " If column completion was specified stop at the "." if
240 if lastword == -1 && compl_type == 'column' && begindot == 1
246 \ compl_type =~ '\<\(table\|view\|procedure\|column\|column_csv\)\>' &&
257 " Return the column of the last word, which is going to be changed.
319 elseif compl_type =~? 'column'
327 " The last time we displayed a column list we stored
328 " the table name. If the user selects a column list
330 " the previous column list displayed.
335 let column = ''
341 let column = matchstr( base, '.*\.\zs.*' )
343 if g:omni_sql_include_owner == 1 && owner == '' && table != '' && column != ''
345 let table = column
346 let column = ''
360 " check to see the table.column exists in the
368 let found = index( tbl_list, ((table != '')?(table.'.'):'').column)
371 " If the table.column was found in the table list, we can safely assume
375 " the base ends in a '.' we know they are not providing a column
379 " let table = column
380 " let column = ''
384 " column level completion, first attempt the match
385 " on any previous column lists. If the user asked
387 if compl_type == 'column' && s:save_prev_table != ''
388 " The last time we displayed a column list we stored
389 " the table name. If the user selects a column list
391 " the previous column list displayed.
397 " If no column prefix has been provided and the table
410 " assume the user is trying to complete the column list
417 " base to be a partial column name
427 " for each column in the table.
441 if column != ''
442 " If no column prefix has been provided and the table
456 " Join the column array into 1 single element array
457 " but make the columns column separated
508 " Match to a owner.table or alias.column type match
521 " It is possible we could be looking for column name completion
525 " completing table names or column names.
613 call sqlcomplete#Map('column')
783 let column = matchstr( a:table_name, '.*\.\zs.*' )
785 if g:omni_sql_include_owner == 1 && owner == '' && table != '' && column != ''
787 let table = column
788 let column = ''
793 let column = ''
796 " Check if the table name was provided as part of the column name
815 " Check if we have already cached the column list for this table
821 " Check if we have already cached the column list for this table
836 " And the table ends in a "." or we are looking for a column list
837 " if list_idx == -1 && (a:table_name =~ '\.' || b:sql_compl_type =~ 'column')
982 " If the user has asked for a comma separate list of column
983 " values, ask the user if they want to prepend each column