From 75c00b5ff47c46c77ed22e84730ebdcb1fcfe7a1 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 18 Aug 2022 14:16:58 +0200 Subject: [PATCH] Use the unix-namestring as the hash key for SQL queries. (#1420) The way we manage and then fetch the SQL queries embedded in the pgloader binary we should really take the unix-namestring rather than the native-namestring. Of course, this only matters when the host OS is NOT unix, which is why this bug existed for so long. --- src/utils/queries.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/queries.lisp b/src/utils/queries.lisp index 1fa8928..4505ecd 100644 --- a/src/utils/queries.lisp +++ b/src/utils/queries.lisp @@ -20,7 +20,7 @@ "Transform given PATHNAME into an URL at which to serve it within URL-PATH." (multiple-value-bind (flag path-list last-component file-namestring-p) (uiop:split-unix-namestring-directory-components - (uiop:native-namestring + (uiop:unix-namestring (uiop:enough-pathname pathname root))) (declare (ignore flag file-namestring-p)) ;;