backend/satellite_tools/rhn-schema-version | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a3c17db2abf01a17d312eacb54335f18db032d5d
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Mon Jan 24 14:17:25 2011 +0100
Make rhn-schema-version work on PostgreSQL.
Addressing
psycopg2.NotSupportedError: cross-database references are not implemented:
pe.evr.as_vre_simple
diff --git a/backend/satellite_tools/rhn-schema-version
b/backend/satellite_tools/rhn-schema-version
index 7da1d69..41d31da 100755
--- a/backend/satellite_tools/rhn-schema-version
+++ b/backend/satellite_tools/rhn-schema-version
@@ -90,7 +90,7 @@ if __name__ == '__main__':
try:
h = rhnSQL.prepare("""
- SELECT PE.evr.as_vre_simple()
+ SELECT evr_t_as_vre_simple(PE.evr) as evrsimple
FROM rhnPackageEVR PE, rhnVersionInfo RVI, rhnPackageName PN
WHERE RVI.label = 'schema'
AND RVI.name_id = PN.id
@@ -99,7 +99,7 @@ if __name__ == '__main__':
h.execute()
row = h.fetchone_dict()
if row:
- print row['pe.evr.as_vre_simple()']
+ print row['evrsimple']
except KeyboardInterrupt:
sys.stderr.write("\nUser interrupted process.\n")
sys.exit(0)
Show replies by date