Skip to content

Commit 3d8534f

Browse files
committed
fix pg catalog dolt_log missing author cols
1 parent 2ca2df9 commit 3d8534f

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ require (
66
github.com/PuerkitoBio/goquery v1.8.1
77
github.com/cockroachdb/apd/v2 v2.0.3-0.20200518165714-d020e156310a
88
github.com/cockroachdb/errors v1.7.5
9-
github.com/dolthub/dolt/go v0.40.5-0.20251114235135-db2b209c8801
9+
github.com/dolthub/dolt/go v0.40.5-0.20251119070408-0e0b4431ab00
1010
github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca
1111
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
12-
github.com/dolthub/go-mysql-server v0.20.1-0.20251114214131-16344edab8e2
12+
github.com/dolthub/go-mysql-server v0.20.1-0.20251118184001-11f255ccc26b
1313
github.com/dolthub/sqllogictest/go v0.0.0-20240618184124-ca47f9354216
1414
github.com/dolthub/vitess v0.0.0-20251107003339-843d10a6a8d4
1515
github.com/fatih/color v1.13.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12 h1:I
228228
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12/go.mod h1:rN7X8BHwkjPcfMQQ2QTAq/xM3leUSGLfb+1Js7Y6TVo=
229229
github.com/dolthub/dolt-mcp v0.2.2 h1:bpROmam74n95uU4EA3BpOIVlTDT0pzeFMBwe/YRq2mI=
230230
github.com/dolthub/dolt-mcp v0.2.2/go.mod h1:S++DJ4QWTAXq+0TNzFa7Oq3IhoT456DJHwAINFAHgDQ=
231-
github.com/dolthub/dolt/go v0.40.5-0.20251114235135-db2b209c8801 h1:NAViuC5niRPPEmANezASEx/x7O3Qm2F7eVzFEyC7T2Q=
232-
github.com/dolthub/dolt/go v0.40.5-0.20251114235135-db2b209c8801/go.mod h1:SDpAhw55jOXKLP3+gbH9HSRanpFQ8P41dNxF1sqstWc=
231+
github.com/dolthub/dolt/go v0.40.5-0.20251119070408-0e0b4431ab00 h1:pBvdhwZ3VAC/u9SGQr+iAEkTzucIcFkr9BL+RakBR6w=
232+
github.com/dolthub/dolt/go v0.40.5-0.20251119070408-0e0b4431ab00/go.mod h1:DO0QOzVjWLx7CP+lQa1hX9V3Zg5ha9fvf25YJSg9FMw=
233233
github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca h1:BGFz/0OlKIuC6qHIZQbvPapFvdAJkeEyGXWVgL5clmE=
234234
github.com/dolthub/eventsapi_schema v0.0.0-20250915094920-eadfd39051ca/go.mod h1:CoDLfgPqHyBtth0Cp+fi/CmC4R81zJNX4wPjShdZ+Bw=
235235
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2 h1:u3PMzfF8RkKd3lB9pZ2bfn0qEG+1Gms9599cr0REMww=
@@ -238,8 +238,8 @@ github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
238238
github.com/dolthub/fslock v0.0.3/go.mod h1:QWql+P17oAAMLnL4HGB5tiovtDuAjdDTPbuqx7bYfa0=
239239
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790 h1:zxMsH7RLiG+dlZ/y0LgJHTV26XoiSJcuWq+em6t6VVc=
240240
github.com/dolthub/go-icu-regex v0.0.0-20250916051405-78a38d478790/go.mod h1:F3cnm+vMRK1HaU6+rNqQrOCyR03HHhR1GWG2gnPOqaE=
241-
github.com/dolthub/go-mysql-server v0.20.1-0.20251114214131-16344edab8e2 h1:ODaw/BUzhvNhHjcDFCmsMIBrnFnRJX19O78Z9kJ+M6g=
242-
github.com/dolthub/go-mysql-server v0.20.1-0.20251114214131-16344edab8e2/go.mod h1:HTOKSMPJWcbSgCe1DksDgNPlZyZP1usV+EoA7Utax+A=
241+
github.com/dolthub/go-mysql-server v0.20.1-0.20251118184001-11f255ccc26b h1:4EO6zLMlYACHal+ZOc9z+Zz+3UZ1q/4MF6Wma7TWH5M=
242+
github.com/dolthub/go-mysql-server v0.20.1-0.20251118184001-11f255ccc26b/go.mod h1:HTOKSMPJWcbSgCe1DksDgNPlZyZP1usV+EoA7Utax+A=
243243
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63 h1:OAsXLAPL4du6tfbBgK0xXHZkOlos63RdKYS3Sgw/dfI=
244244
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63/go.mod h1:lV7lUeuDhH5thVGDCKXbatwKy2KW80L4rMT46n+Y2/Q=
245245
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718 h1:lT7hE5k+0nkBdj/1UOSFwjWpNxf+LCApbRHgnCA17XE=

testing/go/pgcatalog_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5366,6 +5366,9 @@ WHERE pg_catalog.pg_class.relkind = ANY (ARRAY['r', 'p', 'f', 'v', 'm']) AND pg_
53665366
{"date", "timestamp without time zone", nil, "t", "dolt_log", nil, "", nil},
53675367
{"message", "text", nil, "t", "dolt_log", nil, "", nil},
53685368
{"commit_order", "bigint", nil, "t", "dolt_log", nil, "", nil},
5369+
{"author", "text", nil, "t", "dolt_log", nil, "", nil},
5370+
{"author_email", "text", nil, "t", "dolt_log", nil, "", nil},
5371+
{"author_date", "timestamp without time zone", nil, "t", "dolt_log", nil, "", nil},
53695372
},
53705373
},
53715374
},
@@ -5436,6 +5439,9 @@ JOIN pg_catalog.pg_namespace ON pg_catalog.pg_namespace.oid = pg_catalog.pg_type
54365439
{"date", "timestamp without time zone", nil, "t", "dolt_log", nil, "", nil},
54375440
{"message", "text", nil, "t", "dolt_log", nil, "", nil},
54385441
{"commit_order", "bigint", nil, "t", "dolt_log", nil, "", nil},
5442+
{"author", "text", nil, "t", "dolt_log", nil, "", nil},
5443+
{"author_email", "text", nil, "t", "dolt_log", nil, "", nil},
5444+
{"author_date", "timestamp without time zone", nil, "t", "dolt_log", nil, "", nil},
54395445
},
54405446
},
54415447
},
@@ -5905,6 +5911,9 @@ func TestSystemTablesInPgcatalog(t *testing.T) {
59055911
{909123395, "date", 1114, 4, "t", "f", "f"},
59065912
{909123395, "message", 25, 5, "t", "f", "f"},
59075913
{909123395, "commit_order", 20, 6, "t", "f", "f"},
5914+
{909123395, "author", 25, 7, "t", "f", "f"},
5915+
{909123395, "author_email", 25, 8, "t", "f", "f"},
5916+
{909123395, "author_date", 1114, 9, "t", "f", "f"},
59085917
{1060579466, "table_name", 25, 1, "t", "f", "f"},
59095918
{1060579466, "staged", 16, 2, "t", "f", "f"},
59105919
{1060579466, "status", 25, 3, "t", "f", "f"},
@@ -5974,6 +5983,9 @@ func TestSystemTablesInPgcatalog(t *testing.T) {
59745983
{2067982358, "date", 1114, 4, "t", "f", "f"},
59755984
{2067982358, "message", 25, 5, "t", "f", "f"},
59765985
{2067982358, "commit_order", 20, 6, "t", "f", "f"},
5986+
{2067982358, "author", 25, 7, "t", "f", "f"},
5987+
{2067982358, "author_email", 25, 8, "t", "f", "f"},
5988+
{2067982358, "author_date", 1114, 9, "t", "f", "f"},
59775989
{2357712556, "commit_hash", 25, 1, "t", "f", "f"},
59785990
{2357712556, "table_name", 25, 2, "t", "f", "f"},
59795991
{2357712556, "committer", 25, 3, "t", "f", "f"},
@@ -6041,6 +6053,9 @@ func TestSystemTablesInPgcatalog(t *testing.T) {
60416053
{3491847678, "date", 1114, 4, "t", "f", "f"},
60426054
{3491847678, "message", 25, 5, "t", "f", "f"},
60436055
{3491847678, "commit_order", 20, 6, "t", "f", "f"},
6056+
{3491847678, "author", 25, 7, "t", "f", "f"},
6057+
{3491847678, "author_email", 25, 8, "t", "f", "f"},
6058+
{3491847678, "author_date", 1114, 9, "t", "f", "f"},
60446059
{3554775706, "table_name", 25, 1, "t", "f", "f"},
60456060
{3554775706, "staged", 16, 2, "t", "f", "f"},
60466061
{3554775706, "status", 25, 3, "t", "f", "f"},

0 commit comments

Comments
 (0)