More Roundtrip tests
This commit is contained in:
@@ -542,7 +542,7 @@ func (r *Reader) queryIndexes(schemaName string) (map[string][]*models.Index, er
|
||||
index, err := r.parseIndexDefinition(indexName, tableName, schema, indexDef)
|
||||
if err != nil {
|
||||
// If parsing fails, create a basic index
|
||||
index = models.InitIndex(indexName)
|
||||
index = models.InitIndex(indexName, tableName, schema)
|
||||
index.Table = tableName
|
||||
index.Schema = schema
|
||||
}
|
||||
@@ -556,7 +556,7 @@ func (r *Reader) queryIndexes(schemaName string) (map[string][]*models.Index, er
|
||||
|
||||
// parseIndexDefinition parses a PostgreSQL index definition
|
||||
func (r *Reader) parseIndexDefinition(indexName, tableName, schema, indexDef string) (*models.Index, error) {
|
||||
index := models.InitIndex(indexName)
|
||||
index := models.InitIndex(indexName, tableName, schema)
|
||||
index.Table = tableName
|
||||
index.Schema = schema
|
||||
|
||||
|
||||
Reference in New Issue
Block a user