From: Gil Moskowitz Date: Wed, 17 Sep 2014 13:40:29 +0000 (-0400) Subject: replace all occurrences of changed column name X-Git-Tag: v4.7.0-beta.2~13^2~3 X-Git-Url: http://git.roojs.org/?p=xtuple;a=commitdiff_plain;h=af97196eeaee9836e1e44d375826db8a0dfa08ae replace all occurrences of changed column name --- 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;