Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
The PullChunkTracker is an optimization which can concurrently call HasMany on the destination database while chunks are being pulled from the source database.
go-mysql-server
JSON_MERGE()
andJSON_MERGE_PATCH()
MySQL Docs:
JSON_OVERLAPS()
MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#function_json-overlaps
The latest release of
go-mysql-server
requires a different way of instantiating the database server. Notably, a function that provides sessions must now be provided.This change updates our README with the latest working example code from
_example/main.go
.Related to Panic when executing sql statements from external command line tool after startup dolthub/go-mysql-server#2364
random_bytes()
MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_random-bytes
last_insert_uuid()
functionUUIDs are often used in place of
auto_increment
IDs, but MySQL doesn't provide an easy way to get the last generated UUID that was used in an insert. This change introduces a new function,last_insert_uuid()
that operates similarly tolast_insert_id()
. For a column identified as a UUID column, callers can uselast_insert_uuid()
to retrieve the last generated UUID value that was inserted into that column. In order to be considered a UUID column, a column must be part of the primary key and it must meet one of the following type signatures:VARCHAR(36)
orCHAR(36)
with a default value expression ofUUID()
VARBINARY(16)
orBINARY(16)
with a default value expression ofUUID_to_bin(UUID())
(optionally, theswap_flag
forUUID_to_bin
may also be specified)Example usage:
ADDDATE()
MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_adddate
now()
stringThe BATS tests
import-mysqldump.bats
was failing due to a recent string replace case added by fixON UPDATE CURRENT_TIMESTAMP
precision dolthub/go-mysql-server#2357.I didn't account for when
NOW()
would be used with other functions inside aDEFAULT
column expression, and was replacing the"NOW("
with"CURRENT_TIMESTAMP("
. This was causing problems as we reparse ColumnDefaultExprs, resulting in unparenthesized default expressions, which threw an error.There are some tests that are fixed, but we haven't unskipped them.
Additionally, this cleans up the way we skip certain tests so that it is more consistent.
ON UPDATE CURRENT_TIMESTAMP
precisionI had mistaken assumed that MySQL did not allow any precision arguments for
NOW()
(and synonyms) for columnDEFAULT
andON UPDATE
expressions. It turns out MySQL only requires that the column type precision match the expression.Additionally, we did not perform these error checks for
DEFAULT
expression, so now we do.fixes Got "Invalid ON UPDATE clause" after bump to v0.18.0 dolthub/dolt#7555
JSON_TYPE()
MySQL Docs:
https://dev.mysql.com/doc/refman/8.0/en/json-attribute-functions.html#function_json-type
Companion PR:
support casting to year dolthub/vitess#314
vitess
FROM s.account
, in whichaccount
is non-reserved keywordClosed Issues
INNER JOIN
Functional Key Parts
index ?Performance
| Overall Mean Multiple | 2.77 |
|-----------------------|------|