More Roundtrip tests
Some checks are pending
CI / Test (1.23) (push) Waiting to run
CI / Test (1.24) (push) Waiting to run
CI / Test (1.25) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Build (push) Waiting to run

This commit is contained in:
2025-12-17 22:52:24 +02:00
parent 5e1448dcdb
commit a427aa5537
23 changed files with 22897 additions and 1319 deletions

View File

@@ -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