From a8bbc544cac714378e18f85b5f18d2988a752c5f Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Wed, 30 Dec 2015 20:25:12 +0200
Subject: Support package dependency version range

---
 brep/package-extra.sql | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'brep/package-extra.sql')

diff --git a/brep/package-extra.sql b/brep/package-extra.sql
index acf1489..dc37d1f 100644
--- a/brep/package-extra.sql
+++ b/brep/package-extra.sql
@@ -33,10 +33,10 @@ $$ LANGUAGE SQL STABLE;
 --
 CREATE FUNCTION
 latest_package(INOUT name TEXT,
-               OUT version_epoch SMALLINT,
+               OUT version_epoch INTEGER,
                OUT version_canonical_upstream TEXT,
                OUT version_canonical_release TEXT,
-               OUT version_revision SMALLINT)
+               OUT version_revision INTEGER)
 RETURNS SETOF record AS $$
   SELECT name, version_epoch, version_canonical_upstream,
          version_canonical_release, version_revision
@@ -52,10 +52,10 @@ $$ LANGUAGE SQL STABLE;
 CREATE FUNCTION
 search_latest_packages(IN query tsquery,
                        OUT name TEXT,
-                       OUT version_epoch SMALLINT,
+                       OUT version_epoch INTEGER,
                        OUT version_canonical_upstream TEXT,
                        OUT version_canonical_release TEXT,
-                       OUT version_revision SMALLINT,
+                       OUT version_revision INTEGER,
                        OUT rank real)
 RETURNS SETOF record AS $$
   SELECT name, version_epoch, version_canonical_upstream,
@@ -76,10 +76,10 @@ $$ LANGUAGE SQL STABLE;
 CREATE FUNCTION
 search_packages(IN query tsquery,             
                 INOUT name TEXT,
-                OUT version_epoch SMALLINT,
+                OUT version_epoch INTEGER,
                 OUT version_canonical_upstream TEXT,
                 OUT version_canonical_release TEXT,
-                OUT version_revision SMALLINT,
+                OUT version_revision INTEGER,
                 OUT rank real)
 RETURNS SETOF record AS $$
   SELECT name, version_epoch, version_canonical_upstream,
-- 
cgit v1.1

