Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vvakame
Copy link
Contributor

@vvakame vvakame commented Apr 28, 2025

I got an error when execute make test in my local env with make start.

--- FAIL: TestValidSchema (0.19s)
    --- FAIL: TestValidSchema/endtoend-testdata/mysql_vector/mysql/sqlc.json-0 (0.02s)
        ddl_test.go:56: CREATE TABLE foo(
                id INT PRIMARY KEY auto_increment,
                embedding VECTOR(4)
            );: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VECTOR(4)
            )' at line 3

I am not familiar with MySQL, but from what I've researched, VECTOR data type appears to be supported from version 9 1.
sqlc's CI workflow uses version 9 too 2.

Footnotes

  1. https://dev.mysql.com/doc/relnotes/mysql/9.0/en/news-9-0-0.html#mysqld-9-0-0-vectors

  2. https://github.com/sqlc-dev/sqlc/blob/v1.29.0/.github/workflows/ci.yml#L64

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 28, 2025
@kyleconroy kyleconroy merged commit a60f370 into sqlc-dev:main May 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants