Skip to content

Commit

Permalink
Use Uint32 for SEQ_IN_INDEX in 'SHOW INDEXES' queries.
Browse files Browse the repository at this point in the history
This is seemingly the correct type for this field.

MySQL Connector/NET expects this for servers >8.0.1:
https://github.com/mysql/mysql-connector-net/blob/8.4.0/MySQL.Data/src/SchemaProvider.cs#L298-L300

Fixes dolthub#2501
  • Loading branch information
mkrautz committed May 19, 2024
1 parent 2778508 commit 2b3e762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/plan/show_indexes.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (n *ShowIndexes) Schema() sql.Schema {
&sql.Column{Name: "Table", Type: types.LongText},
&sql.Column{Name: "Non_unique", Type: types.Int32},
&sql.Column{Name: "Key_name", Type: types.LongText},
&sql.Column{Name: "Seq_in_index", Type: types.Int32},
&sql.Column{Name: "Seq_in_index", Type: types.Uint32},
&sql.Column{Name: "Column_name", Type: types.LongText, Nullable: true},
&sql.Column{Name: "Collation", Type: types.LongText, Nullable: true},
&sql.Column{Name: "Cardinality", Type: types.Int64},
Expand Down

0 comments on commit 2b3e762

Please sign in to comment.