File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Mysql.prototype.visitInsert = function(insert) {
5858} ;
5959
6060Mysql . prototype . visitIndexes = function ( node ) {
61- var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) ;
61+ var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) [ 0 ] ;
6262
6363 return "SHOW INDEX FROM " + tableName ;
6464} ;
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ Postgres.prototype.visitModifier = function(node) {
568568
569569Postgres . prototype . visitIndexes = function ( node ) {
570570 /* jshint unused: false */
571- var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) ;
571+ var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) [ 0 ] ;
572572
573573 return [
574574 "SELECT relname" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Sqlite.prototype.visitAddColumn = function(addColumn) {
4141} ;
4242
4343Sqlite . prototype . visitIndexes = function ( node ) {
44- var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) ;
44+ var tableName = this . visit ( this . _queryNode . table . toNode ( ) ) [ 0 ] ;
4545 return "PRAGMA INDEX_LIST(" + tableName + ")" ;
4646} ;
4747
You can’t perform that action at this time.
0 commit comments