Skip to content

mariadb/mysql doesn't like " around table names#2

Open
kjbrandstatter wants to merge 2 commits intomaettu:masterfrom
kjbrandstatter:mysql-mariadb-support
Open

mariadb/mysql doesn't like " around table names#2
kjbrandstatter wants to merge 2 commits intomaettu:masterfrom
kjbrandstatter:mysql-mariadb-support

Conversation

@kjbrandstatter
Copy link
Copy Markdown

Also schema fails to create because key is a reserved keyword
And "BEGIN" is sufficient for mysql, "begin transaction" throws errors.

Tested this change against postgres as well to make sure it was ok without quotes but am open to suggestions.
The column i left configurable cause changing it would obviously break existing setups.

example of error seen in mysql/mariadb prior
DBDish::mysql: Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"junk" ( keyname TEXT UNIQUE NOT NULL, value INTEGER NO...' at line 1 (1064)

Kevin Brandstatter added 2 commits May 3, 2024 18:11
Also schema fails to create because key is a reserved keyword
@maettu maettu requested a review from andinus May 5, 2024 11:29
@maettu
Copy link
Copy Markdown
Owner

maettu commented May 5, 2024

@kjbrandstatter thanks for the patch! Please gloss over #1
@andinus has basically taken over, here, and is also making releases.

If you both can sort this out, bilaterally, that will be perfect.

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