mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 10:31:30 -06:00
exclude ld
This commit is contained in:
@@ -16,6 +16,7 @@ package dtables
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
types2 "github.com/dolthub/dolt/go/store/types"
|
||||
|
||||
"github.com/dolthub/go-mysql-server/sql"
|
||||
"github.com/dolthub/go-mysql-server/sql/types"
|
||||
@@ -87,6 +88,9 @@ func (dt *CommitAncestorsTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error
|
||||
|
||||
// IndexedAccess implements sql.IndexAddressable
|
||||
func (dt *CommitAncestorsTable) IndexedAccess(lookup sql.IndexLookup) sql.IndexedTable {
|
||||
if !types2.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if lookup.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(lookup)
|
||||
if !ok {
|
||||
|
||||
@@ -16,6 +16,7 @@ package dtables
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
types2 "github.com/dolthub/dolt/go/store/types"
|
||||
|
||||
"github.com/dolthub/go-mysql-server/sql"
|
||||
"github.com/dolthub/go-mysql-server/sql/types"
|
||||
@@ -89,6 +90,9 @@ func (dt *CommitsTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error) {
|
||||
|
||||
// IndexedAccess implements sql.IndexAddressable
|
||||
func (dt *CommitsTable) IndexedAccess(lookup sql.IndexLookup) sql.IndexedTable {
|
||||
if !types2.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if lookup.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(lookup)
|
||||
if !ok {
|
||||
|
||||
@@ -326,6 +326,9 @@ func (dt *DiffTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error) {
|
||||
|
||||
// IndexedAccess implements sql.IndexAddressable
|
||||
func (dt *DiffTable) IndexedAccess(lookup sql.IndexLookup) sql.IndexedTable {
|
||||
if !types.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if lookup.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(lookup)
|
||||
if !ok {
|
||||
|
||||
@@ -17,6 +17,7 @@ package dtables
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
types2 "github.com/dolthub/dolt/go/store/types"
|
||||
|
||||
"github.com/dolthub/go-mysql-server/sql"
|
||||
"github.com/dolthub/go-mysql-server/sql/types"
|
||||
@@ -110,6 +111,9 @@ func (dt *LogTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error) {
|
||||
|
||||
// IndexedAccess implements sql.IndexAddressable
|
||||
func (dt *LogTable) IndexedAccess(lookup sql.IndexLookup) sql.IndexedTable {
|
||||
if !types2.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if lookup.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(lookup)
|
||||
if !ok {
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
types2 "github.com/dolthub/dolt/go/store/types"
|
||||
"io"
|
||||
|
||||
"github.com/dolthub/go-mysql-server/sql"
|
||||
@@ -157,6 +158,9 @@ func (dt *UnscopedDiffTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error) {
|
||||
|
||||
// IndexedAccess implements sql.IndexAddressable
|
||||
func (dt *UnscopedDiffTable) IndexedAccess(lookup sql.IndexLookup) sql.IndexedTable {
|
||||
if !types2.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if lookup.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(lookup)
|
||||
if !ok {
|
||||
|
||||
@@ -81,6 +81,9 @@ func (ht *HistoryTable) GetIndexes(ctx *sql.Context) ([]sql.Index, error) {
|
||||
}
|
||||
|
||||
func (ht *HistoryTable) IndexedAccess(l sql.IndexLookup) sql.IndexedTable {
|
||||
if !types2.IsFormat_DOLT(dt.ddb.Format()) {
|
||||
return nil
|
||||
}
|
||||
if l.Index.ID() == index.CommitHashIndexId {
|
||||
_, ok := index.LookupToPointSelectStr(l)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user