소스 검색

return hash on post with binary eye

Pi 4 달 전
부모
커밋
f94e5e981a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      util-sqlpage/code/new.sql

+ 1 - 2
util-sqlpage/code/new.sql

@@ -6,5 +6,4 @@ UPDATE SET
   created = excluded.created,
   svg = excluded.svg
 WHERE excluded.created > code.created;
-SELECT 'text' AS component;
-SELECT $hash AS contents;
+SELECT 'json' AS component, json('"'||$hash||'"') AS contents;