瀏覽代碼

Fix notification trigger

Neal Wilson 10 年之前
父節點
當前提交
b7f5dad61d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      config/Windows/navigation.xml

+ 1
- 1
config/Windows/navigation.xml 查看文件

@@ -283,7 +283,7 @@ type="push" />
283 283
 		/* Asynchronous notifications */
284 284
 		var DBUpdateNotifications = function() {
285 285
 			var query = new new QSqlQuery;
286
-			query.exec("CREATE OR REPLACE FUNCTION notify_roasting_log_change() RETURNS TRIGGER AS $$ BEGIN NOTIFY RoastingLogChange; END; $$ LANGUAGE plpgsql");
286
+			query.exec("CREATE OR REPLACE FUNCTION notify_roasting_log_change() RETURNS TRIGGER AS $$ BEGIN NOTIFY RoastingLogChange; RETURN NULL; END; $$ LANGUAGE plpgsql");
287 287
 			query.exec("CREATE TRIGGER notify_roasting_log_change AFTER INSERT OR UPDATE ON roasting_log FOR EACH STATEMENT EXECUTE PROCEDURE notify_roasting_log_change()");
288 288
 			query = query.invalidate();
289 289
 		};

Loading…
取消
儲存