projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
bd2353f
)
declare expand_barcode to be STABLE
author
Galen Charlton
<gmc@esilibrary.com>
Wed, 26 Aug 2009 19:00:28 +0000 (19:00 +0000)
committer
Galen Charlton
<gmc@esilibrary.com>
Wed, 26 Aug 2009 19:00:28 +0000 (19:00 +0000)
As noticed by Jason, doing this gives a signficant
performance boost.
sql/base/base.sql
patch
|
blob
|
history
diff --git
a/sql/base/base.sql
b/sql/base/base.sql
index
6ae7e39
..
3c12cc3
100644
(file)
--- a/
sql/base/base.sql
+++ b/
sql/base/base.sql
@@
-593,4
+593,4
@@
CREATE OR REPLACE FUNCTION migration_tools.expand_barcode (TEXT, TEXT, INTEGER,
return $barcode if (length($prefix) + length($new_barcode) + length($suffix)) > $maxlen;
return "$prefix$new_barcode$suffix";
-$$ LANGUAGE PLPERL;
+$$ LANGUAGE PLPERL STABLE;