This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Commit 341ccb2
committed
docker_registry.lib.index.db: Support empty-query searches
Avoid building queries like:
SELECT
repository.id AS repository_id,
repository.name AS repository_name,
repository.description AS repository_description
FROM repository
WHERE repository.name LIKE %% OR repository.description LIKE %%
When folks don't specify a query term.
Reported-by: Don Laidlaw <don@donlaidlaw.ca>1 parent 3a65d9c commit 341ccb2
2 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
0 commit comments