summaryrefslogtreecommitdiff
path: root/src/sql/uninsertableInsert.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/uninsertableInsert.sql')
-rw-r--r--src/sql/uninsertableInsert.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sql/uninsertableInsert.sql b/src/sql/uninsertableInsert.sql
new file mode 100644
index 0000000..5b09393
--- /dev/null
+++ b/src/sql/uninsertableInsert.sql
@@ -0,0 +1,5 @@
+INSERT INTO entities(type, value, detail)
+ VALUES ('uninsertable_line', $1, jsonb_build_object('hostnameId', $2::int, 'error', $3::text,
+ 'timestamp', CURRENT_TIMESTAMP))
+RETURNING
+ id