Skip to content

Commit

Permalink
/go/libraries/doltcore/{schema,sqle}: finally!!
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeegoddd committed Oct 22, 2024
1 parent 93afc19 commit 0068deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/libraries/doltcore/schema/index_coll.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (ixc *indexCollectionImpl) AddIndexByColNames(indexName string, cols []stri

func (ixc *indexCollectionImpl) AddIndexByColTags(indexName string, tags []uint64, prefixLengths []uint16, props IndexProperties) (Index, error) {
lowerName := strings.ToLower(indexName)
if strings.HasPrefix(lowerName, "dolt_") {
if strings.HasPrefix(lowerName, "dolt_") && !strings.HasPrefix(lowerName, "dolt_ci_") {
return nil, fmt.Errorf("indexes cannot be prefixed with `dolt_`")
}
if ixc.Contains(lowerName) {
Expand Down
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -3085,7 +3085,7 @@ func (t *WritableDoltTable) updateFromRoot(ctx *sql.Context, root doltdb.RootVal
return fmt.Errorf("table `%s` cannot find itself", t.tableName)
}
var updatedTable *AlterableDoltTable
if doltdb.HasDoltPrefix(t.tableName) && !doltdb.IsReadOnlySystemTable(t.tableName) {
if doltdb.HasDoltPrefix(t.tableName) && !doltdb.IsReadOnlySystemTable(t.tableName) && !doltdb.IsDoltCITable(t.tableName) {
updatedTable = &AlterableDoltTable{*updatedTableSql.(*WritableDoltTable)}
} else {
updatedTable = updatedTableSql.(*AlterableDoltTable)
Expand Down

0 comments on commit 0068deb

Please sign in to comment.