Skip to content

Commit 744aefd

Browse files
author
James William Pye
committed
Add some comments and use first for prepxactlookup.
1 parent e735f9f commit 744aefd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

postgresql/lib/libsys.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# copyright 2009, James William Pye
33
# http://python.projects.postgresql.org
44
##
5-
-- Queries for dealing with the PostgreSQL catalogs.
5+
-- Queries for dealing with the PostgreSQL catalogs for supporting the driver.
66

77
[lookup_type::first]
88
SELECT
@@ -27,6 +27,7 @@ FROM pg_catalog.pg_type bt
2727
WHERE bt.oid = $1
2828

2929
[lookup_composite]
30+
-- Get the type Oid and name of the attributes in `attnum` order.
3031
SELECT
3132
CAST(atttypid AS oid) AS atttypid,
3233
CAST(attname AS VARCHAR) AS attname
@@ -59,7 +60,7 @@ FROM
5960
*[lookup_procedures]
6061
WHERE pg_proc.oid = regprocedurein($1)
6162

62-
[lookup_prepared_xacts]
63+
[lookup_prepared_xacts::first]
6364
SELECT
6465
COALESCE(ARRAY(
6566
SELECT

0 commit comments

Comments
 (0)