Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fc9dd12d
Commit
fc9dd12d
authored
Jul 07, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query in SQL function still not schema-safe; add a couple
more pg_catalog. qualifications.
parent
98728127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/backend/catalog/information_schema.sql
src/backend/catalog/information_schema.sql
+3
-2
No files found.
src/backend/catalog/information_schema.sql
View file @
fc9dd12d
...
...
@@ -4,7 +4,7 @@
*
* Copyright (c) 2003-2009, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.5
5 2009/07/07 18:23:13 petere
Exp $
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.5
6 2009/07/07 19:28:00 tgl
Exp $
*/
/*
...
...
@@ -106,7 +106,8 @@ $$SELECT
CASE
WHEN
$
1
IN
(
25
,
1042
,
1043
)
/* text, char, varchar */
THEN
CASE
WHEN
$
2
=
-
1
/* default typmod */
THEN
CAST
(
2
^
30
AS
integer
)
ELSE
information_schema
.
_pg_char_max_length
(
$
1
,
$
2
)
*
pg_catalog
.
pg_encoding_max_length
((
SELECT
encoding
FROM
pg_database
WHERE
datname
=
current_database
()))
ELSE
information_schema
.
_pg_char_max_length
(
$
1
,
$
2
)
*
pg_catalog
.
pg_encoding_max_length
((
SELECT
encoding
FROM
pg_catalog
.
pg_database
WHERE
datname
=
pg_catalog
.
current_database
()))
END
ELSE
null
END
$$
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment