aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2023-10-06 11:46:27 +0300
committerGitHub <noreply@github.com>2023-10-06 11:46:27 +0300
commit03777f5be657dcaa8fe379f2e1a39d1c2db04d00 (patch)
treea93ab944c72bb081633f951ac29af540b02c7c4c
parent470373386cf33c3c7359d15a44d82d2d84a7c065 (diff)
parent984e555acbadbd1aed7df17ab53e2c586a2f8f68 (diff)
downloadopenrussian-cli-03777f5be657dcaa8fe379f2e1a39d1c2db04d00.tar.gz
Merge pull request #3 from vs49688/master
postprocess: remove use of double-quoted strings
-rw-r--r--postprocess.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/postprocess.sql b/postprocess.sql
index 5976cb1..950bb27 100644
--- a/postprocess.sql
+++ b/postprocess.sql
@@ -18,7 +18,7 @@ CREATE TABLE bare_inflections (`word_id` INTEGER NOT NULL, `bare` VARCHAR(100) N
-- also be BINARY collated. See also:
-- https://www.sqlite.org/optoverview.html#the_like_optimization
CREATE INDEX idx_bare_inflections_bare ON bare_inflections (`bare`);
-INSERT INTO bare_inflections SELECT word_id, REPLACE(temp, "'", "") AS bare
+INSERT INTO bare_inflections SELECT word_id, REPLACE(temp, '''', '') AS bare
FROM (
-- Search word might be a noun or adjective declension
SELECT word_id, nom AS temp FROM declensions
@@ -72,7 +72,7 @@ FROM (
UNION ALL
SELECT word_id, pl3 AS temp FROM conjugations
)
-WHERE bare <> "";
+WHERE bare <> '';
-- Saves a few megabytes
VACUUM;