Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ require (
github.com/antchfx/xpath v1.3.3
github.com/cockroachdb/apd/v3 v3.2.3
github.com/cockroachdb/errors v1.7.5
github.com/dolthub/dolt/go v0.40.5-0.20261002233748-c6af56fead88
github.com/dolthub/dolt/go v0.40.5-0.20261003025830-2b324410a925
github.com/dolthub/eventsapi_schema v0.0.0-20260715220557-d9b4a1c6b4d4
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
github.com/dolthub/go-mysql-server v0.20.1-0.20261001232740-19405eb6f203
github.com/dolthub/go-mysql-server v0.20.1-0.20261003024659-eeb0e3e7bf8e
github.com/dolthub/pg_query_go/v6 v6.0.0-20260922094746-ae7577e21dfe
github.com/dolthub/sqllogictest/go v0.0.0-20260624223518-788480b24166
github.com/dolthub/vitess v0.0.0-20260930232419-a6b7b0c65d17
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12 h1:I
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12/go.mod h1:rN7X8BHwkjPcfMQQ2QTAq/xM3leUSGLfb+1Js7Y6TVo=
github.com/dolthub/dolt-mcp v0.3.4 h1:AyG5cw+fNWXDHXujtQnqUPZrpWtPg6FN6yYtjv1pP44=
github.com/dolthub/dolt-mcp v0.3.4/go.mod h1:bCZ7KHvDYs+M0e+ySgmGiNvLhcwsN7bbf5YCyillLrk=
github.com/dolthub/dolt/go v0.40.5-0.20261002233748-c6af56fead88 h1:2HfeitrXNFvlCPWog+yMjSeZ4qBWSZOnOaeWI9Ai8QU=
github.com/dolthub/dolt/go v0.40.5-0.20261002233748-c6af56fead88/go.mod h1:+DGXtWsZ7EFxHfh7LFKUEVdfj9aDPhR5SnaLZ7dxWQQ=
github.com/dolthub/dolt/go v0.40.5-0.20261003025830-2b324410a925 h1:Fa6opL5XxPpOf0vt9ssIFf+wh6tMO8+b2EDGWoDOy8E=
github.com/dolthub/dolt/go v0.40.5-0.20261003025830-2b324410a925/go.mod h1:9Si7EBxpVNfxP634VRig0uE436AOfKln4kEJtCxcwfk=
github.com/dolthub/eventsapi_schema v0.0.0-20260715220557-d9b4a1c6b4d4 h1:0mg9QEFdkkBwJMxvz1tCjHYmfG2iIC6aShj1InDq9/M=
github.com/dolthub/eventsapi_schema v0.0.0-20260715220557-d9b4a1c6b4d4/go.mod h1:SSLraQS/jGLYFgff3vuZ+JbVUct6vyEeMzjLBqWqoyM=
github.com/dolthub/file-locks v0.1.1 h1:8oKr20PflAVHkroB5Kq1BrtzesvKop9onekWEse1Qr8=
Expand All @@ -260,8 +260,8 @@ github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2 h1:u3PMzfF8RkKd3lB9pZ2bfn0qEG+1G
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2/go.mod h1:mIEZOHnFx4ZMQeawhw9rhsj+0zwQj7adVsnBX7t+eKY=
github.com/dolthub/go-icu-regex v0.0.0-20260610153742-72563bc7ca83 h1:FEMjCGEroDnY/BXyAffVZxUpXhP2GpoUJyyq5KaLn8c=
github.com/dolthub/go-icu-regex v0.0.0-20260610153742-72563bc7ca83/go.mod h1:F3cnm+vMRK1HaU6+rNqQrOCyR03HHhR1GWG2gnPOqaE=
github.com/dolthub/go-mysql-server v0.20.1-0.20261001232740-19405eb6f203 h1:Q1q3rmpxwHNU3u0uUXM9Zd+VSXtsGiXjU1ohY5z0+pU=
github.com/dolthub/go-mysql-server v0.20.1-0.20261001232740-19405eb6f203/go.mod h1:8yhQsTiaXTn5/q9DCc1RJoOkVvGgDvvVrylW9EFjv/A=
github.com/dolthub/go-mysql-server v0.20.1-0.20261003024659-eeb0e3e7bf8e h1:lUEoKZsrEAZiKoqGPQwBjiaDQXFPEQYhp4bUgkKDwao=
github.com/dolthub/go-mysql-server v0.20.1-0.20261003024659-eeb0e3e7bf8e/go.mod h1:8yhQsTiaXTn5/q9DCc1RJoOkVvGgDvvVrylW9EFjv/A=
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
github.com/dolthub/ishell v0.0.0-20260414231531-5f031e3e9037 h1:oIW9HwuWrhxv+4HZxA+QQSKHLqWFyXZ2FmNjUYwkdiM=
Expand Down
24 changes: 22 additions & 2 deletions testing/go/dolt_tables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,6 @@ func TestUserSpaceDoltTables(t *testing.T) {
},
Assertions: []ScriptTestAssertion{
{
Skip: true,
Query: `SELECT to_id FROM dolt_commit_diff_bug6
WHERE to_commit = (SELECT commit_hash FROM dolt.log ORDER BY date DESC LIMIT 1)
AND from_commit = (SELECT commit_hash FROM dolt.log ORDER BY date DESC OFFSET 1 LIMIT 1);`,
Expand All @@ -1558,10 +1557,31 @@ WHERE to_commit = (SELECT commit_hash FROM dolt.log ORDER BY date DESC LIMIT 1)
{
// workaround: use hashof
Query: `SELECT to_id FROM dolt_commit_diff_bug6
WHERE to_commit = dolt_hashof('HEAD')
WHERE to_commit = dolt_hashof('HEAD')
AND from_commit = dolt_hashof('HEAD~');`,
Expected: []sql.Row{{1}},
},
{
Query: `SELECT to_id FROM DOLT_DIFF(
(SELECT commit_hash FROM dolt.log ORDER BY date DESC OFFSET 1 LIMIT 1),
(SELECT commit_hash FROM dolt.log ORDER BY date DESC LIMIT 1),
'bug6');`,
Expected: []sql.Row{{1}},
},
{
Query: `SELECT to_id FROM dolt_commit_diff_bug6 WHERE to_commit = (SELECT commit_hash FROM dolt.log) AND from_commit = dolt_hashof('HEAD~');`,
ExpectedErr: "more than",
ExpectedErrCode: "21000",
},
{
Query: `SELECT to_id FROM DOLT_DIFF((SELECT commit_hash FROM dolt.log), 'HEAD', 'bug6');`,
ExpectedErr: "more than",
ExpectedErrCode: "21000",
},
{
Query: `SELECT to_id FROM dolt_commit_diff_bug6 WHERE to_commit = (SELECT commit_hash FROM dolt.log WHERE 1 = 0) AND from_commit = dolt_hashof('HEAD~');`,
Expected: []sql.Row{},
},
},
},
{
Expand Down
Loading