Menu

#4916 (ok 4.5) Autocomplete either doesn't function at all or auto completes the original table name when joining multiple aliased tables

4.4.7
resolved
None
Normal
2015-06-29
2015-05-21
DrY
No

Suppose we have 3 tables table1, table2, table3

Whenever I write query of the form:

select t1.*, t2.field1, t3.* from
table1 as t1 inner join table2 as t2
on t1.id = t2.id -- 1st join condition
inner join table3 as t3
on t2.fk = t3.id -- 2nd join condition

then when I am in the process of typing the 2nd join condition, the autocomplete engine recognizes the list of t3 fields but when I select one of them it brings the full (unaliased) name of the table, i.e table3.

For the 1st condition, autocomplete simply doesn't work

Discussion

  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    Autocomplete functionality uses a third party library and I have sent them a pull request here with fixes https://github.com/codemirror/CodeMirror/pull/3274

     
  • Nisarg Jhaveri

    Nisarg Jhaveri - 2015-06-26

    CodeMirror version 5.4.0 is released. Probably we can update the library now.

     
  • Madhura Jayaratne

    Thanks Nisarg, I will update the library.

     
  • Madhura Jayaratne

    • summary: Autocomplete either doesn't function at all or auto completes the original table name when joining multiple aliased tables --> (ok 4.5) Autocomplete either doesn't function at all or auto completes the original table name when joining multiple aliased tables
    • status: open --> resolved
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.