ソースを参照

Fix typo in database function log_session_user

Neal Wilson 11年前
コミット
adb4028a04
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      config/Windows/navigation.xml

+ 1
- 1
config/Windows/navigation.xml ファイルの表示

@@ -259,7 +259,7 @@ type="push" />
259 259
 			var query = new QSqlQuery;
260 260
 			query.exec("ALTER TABLE transactions ADD COLUMN person text DEFAULT NULL");
261 261
 			query.exec("ALTER TABLE roasting_log ADD COLUMN person text DEFAULT NULL");
262
-			query.exec("CREATE OR REPLACE FUNCTION log_session_user() RETURNS trigger AS $$ BEGIN NEW.person := session_name; RETURN NEW; END; $$ LANGUAGE plpgsql");
262
+			query.exec("CREATE OR REPLACE FUNCTION log_session_user() RETURNS trigger AS $$ BEGIN NEW.person := session_user; RETURN NEW; END; $$ LANGUAGE plpgsql");
263 263
 			query.exec("CREATE TRIGGER log_person BEFORE INSERT ON inventory FOR EACH ROW EXECUTE PROCEDURE log_session_user()");
264 264
 			query.exec("CREATE TRIGGER log_person BEFORE INSERT ON loss FOR EACH ROW EXECUTE PROCEDURE log_session_user()");
265 265
 			query.exec("CREATE TRIGGER log_person BEFORE INSERT ON make FOR EACH ROW EXECUTE PROCEDURE log_session_user()");

読み込み中…
キャンセル
保存