Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the new VECTOR type #194

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

dbussink
Copy link
Contributor

MySQL 9.0 added a new vector type at the protocol level, so this adds support for it. It is a binary length encoded buffer, so treat it as such.

@@ -926,6 +926,8 @@ int trilogy_build_stmt_execute_packet(trilogy_builder_t *builder, uint32_t stmt_
case TRILOGY_TYPE_VAR_STRING:
case TRILOGY_TYPE_STRING:
case TRILOGY_TYPE_GEOMETRY:
case TRILOGY_TYPE_JSON:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missing JSON for some reason (probably bad copy paste), so I added it here for completeness.

MySQL 9.0 added a new vector type at the protocol level, so this adds
support for it. It is a binary length encoded buffer, so treat it as
such.

Signed-off-by: Dirkjan Bussink <[email protected]>
@dbussink
Copy link
Contributor Author

Copy link
Member

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

@jhawthorn jhawthorn merged commit e916d13 into trilogy-libraries:main Sep 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants