Skip to content

Commit 9876c7b

Browse files
committed
Fixes
1 parent a5d3a13 commit 9876c7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go/libraries/doltcore/sqle/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ func filterDoltInternalTables(ctx *sql.Context, tblNames []string, schemaName st
11341134
result := []string{}
11351135

11361136
for _, tbl := range tblNames {
1137-
if doltdb.IsDoltCITable(tbl) {
1137+
if doltdb.IsDoltCITable(tbl, doltdb.HasDoltCIPrefix(tbl)) {
11381138
if doltdb.DoltCICanBypass(ctx) {
11391139
result = append(result, tbl)
11401140
}

go/libraries/doltcore/sqle/user_space_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (db *UserSpaceDatabase) Schema() string {
4848
}
4949

5050
func (db *UserSpaceDatabase) GetTableInsensitive(ctx *sql.Context, tableName string) (sql.Table, bool, error) {
51-
if doltdb.IsReadOnlySystemTable(tableName, false) {
51+
if doltdb.IsReadOnlySystemTable(tableName, doltdb.HasDoltPrefix(tableName)) {
5252
return nil, false, nil
5353
}
5454
table, tableName, ok, err := doltdb.GetTableInsensitive(ctx, db.RootValue, doltdb.TableName{Name: tableName})
@@ -76,7 +76,7 @@ func (db *UserSpaceDatabase) GetTableNames(ctx *sql.Context) ([]string, error) {
7676
}
7777
resultingTblNames := []string{}
7878
for _, tbl := range tableNames {
79-
if !doltdb.IsReadOnlySystemTable(tbl, false) {
79+
if !doltdb.IsReadOnlySystemTable(tbl, doltdb.HasDoltPrefix(tbl)) {
8080
resultingTblNames = append(resultingTblNames, tbl)
8181
}
8282
}

0 commit comments

Comments
 (0)