Skip to content

support double quotes in table names - #113

Merged
mpenkov merged 11 commits into
piskvorky:masterfrom
vcalv:quote
Aug 21, 2020
Merged

support double quotes in table names#113
mpenkov merged 11 commits into
piskvorky:masterfrom
vcalv:quote

Conversation

@vcalv

@vcalv vcalv commented Jul 5, 2020

Copy link
Copy Markdown
Contributor

Fixes #112

Comment thread tests/test_core.py Outdated
Comment thread sqlitedict.py Outdated
Comment thread tests/test_core.py
@vcalv

vcalv commented Jul 6, 2020

Copy link
Copy Markdown
Contributor Author

BTW. get_tablenames returns the table names unescaped, so no need to change anything there.

Comment thread sqlitedict.py
Comment thread tests/test_core.py
@vcalv

vcalv commented Jul 7, 2020

Copy link
Copy Markdown
Contributor Author

FYI, sqlite identifiers are "kind of" case insensitive, but just on the ASCII characters, so:

acute and Acute are the same table, but

ácute and Ácute are different tables.

but ácute and áCUTE are the same table.

It messes with the philosophy of this project a bit if you think of table names as keys.

In particular the solution on #84 should break sometimes due to this "case insensitiveness"

@piskvorky
piskvorky requested a review from mpenkov July 8, 2020 10:10
Comment thread sqlitedict.py Outdated
Comment thread sqlitedict.py Outdated
Comment thread sqlitedict.py Outdated
mpenkov and others added 3 commits August 21, 2020 13:21
Co-authored-by: Radim Řehůřek <me@radimrehurek.com>
Co-authored-by: Radim Řehůřek <me@radimrehurek.com>
@mpenkov
mpenkov merged commit 049fa93 into piskvorky:master Aug 21, 2020
@mpenkov

mpenkov commented Aug 21, 2020

Copy link
Copy Markdown
Collaborator

Merged. Thank you for your contribution, @vcalv !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants