From af97196eeaee9836e1e44d375826db8a0dfa08ae Mon Sep 17 00:00:00 2001 From: Gil Moskowitz Date: Wed, 17 Sep 2014 09:40:29 -0400 Subject: [PATCH] replace all occurrences of changed column name --- lib/orm/source/xt/javascript/data.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/orm/source/xt/javascript/data.sql b/lib/orm/source/xt/javascript/data.sql index a93b75adb..ada5e1bdf 100644 --- a/lib/orm/source/xt/javascript/data.sql +++ b/lib/orm/source/xt/javascript/data.sql @@ -2431,7 +2431,7 @@ select xt.install_js('XT','Data','xtuple', $$ "from pg_stat_activity " + "where datname=current_database() " + " and usename=$1 " + - " and procpid=$2;".replace("{pidcol}", pidcol), + " and {pidcol}=$2;", query, selectSql = "select * " + "from xt.lock " + @@ -2439,6 +2439,8 @@ select xt.install_js('XT','Data','xtuple', $$ " and lock_record_id = $2;", username = XT.username; + pidSql = pidSql.replace(/{pidcol}/g, pidcol); + /* If passed a table name, look up the oid. */ oid = typeof table === "string" ? this.getTableOid(table) : table; -- 2.39.2