Permalink
Browse files

Merge pull request #115 from jrogelstad/master

Improve performance.
  • Loading branch information...
2 parents febb3ae + eb6f726 commit 36e770346cd9f89a1a4ca2fad7dc299c69747c4b Greg Pazo committed Feb 11, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 dbscripts/functions/iteminvpricerat.sql
  2. +2 −2 dbscripts/functions/stdcost.sql
@@ -1,4 +1,4 @@
-CREATE OR REPLACE FUNCTION itemInvPriceRat(INTEGER) RETURNS NUMERIC AS '
+CREATE OR REPLACE FUNCTION itemInvPriceRat(INTEGER) RETURNS NUMERIC STABLE AS '
-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
@@ -1,12 +1,12 @@
-CREATE OR REPLACE FUNCTION stdCost(INTEGER) RETURNS NUMERIC AS '
+CREATE OR REPLACE FUNCTION stdCost(INTEGER) RETURNS NUMERIC STABLE AS '
-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
RETURN stdCost($1, NULL);
END;
' LANGUAGE 'plpgsql';
-CREATE OR REPLACE FUNCTION stdCost(INTEGER, INTEGER) RETURNS NUMERIC AS '
+CREATE OR REPLACE FUNCTION stdCost(INTEGER, INTEGER) RETURNS NUMERIC STABLE AS '
-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE

0 comments on commit 36e7703

Please sign in to comment.