[open-ils-commits] r10016 - branches/rel_1_2_2/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 10 09:04:11 EDT 2008
Author: miker
Date: 2008-07-10 09:04:10 -0400 (Thu, 10 Jul 2008)
New Revision: 10016
Modified:
branches/rel_1_2_2/Open-ILS/src/sql/Pg/extend-reporter.sql
Log:
backporting typo fixes from trunk
Modified: branches/rel_1_2_2/Open-ILS/src/sql/Pg/extend-reporter.sql
===================================================================
--- branches/rel_1_2_2/Open-ILS/src/sql/Pg/extend-reporter.sql 2008-07-10 13:03:26 UTC (rev 10015)
+++ branches/rel_1_2_2/Open-ILS/src/sql/Pg/extend-reporter.sql 2008-07-10 13:04:10 UTC (rev 10016)
@@ -20,15 +20,15 @@
CREATE SCHEMA extend_reporter;
-CREATE TABLE extend_reporter.legcay_circ_count (
- id BIGSERIAL PRIMARY KEY REFERENCES asset.copy (id)
+CREATE TABLE extend_reporter.legacy_circ_count (
+ id BIGSERIAL PRIMARY KEY REFERENCES asset.copy (id),
circ_count INT NOT NULL DEFAULT 0
);
CREATE VIEW extend_reporter.full_circ_count AS
SELECT cp.id, COALESCE(sum(c.circ_count), 0::bigint) + COALESCE(count(circ.id), 0::bigint) AS circ_count
FROM asset."copy" cp
- LEFT JOIN extend_reporter.legcay_circ_count c USING (id)
+ LEFT JOIN extend_reporter.legacy_circ_count c USING (id)
LEFT JOIN "action".circulation circ ON circ.target_copy = c.id
GROUP BY cp.id;
More information about the open-ils-commits
mailing list