File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/server/src/complete Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,12 @@ export class Identifier {
4646 const idx = this . lastToken . lastIndexOf ( '.' )
4747 const label = this . identifier . substring ( idx + 1 )
4848 let kindName : string
49- let tableAlias = ''
5049 if ( this . kind === ICONS . TABLE ) {
5150 let tableName = label
5251 const i = tableName . lastIndexOf ( '.' )
5352 if ( i > 0 ) {
5453 tableName = label . substring ( i + 1 )
5554 }
56- tableAlias = this . onClause === 'FROM' ? makeTableAlias ( tableName ) : ''
5755 kindName = 'table'
5856 } else {
5957 kindName = 'column'
@@ -66,11 +64,7 @@ export class Identifier {
6664 }
6765
6866 if ( this . kind === ICONS . TABLE ) {
69- if ( tableAlias ) {
70- item . insertText = `${ label } AS ${ tableAlias } `
71- } else {
72- item . insertText = label
73- }
67+ item . insertText = label
7468 }
7569 return item
7670 }
You can’t perform that action at this time.
0 commit comments