Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde623f3

Browse files
committed
Fix upgrade of contrib/xml2 from 9.0.
Update script was being sloppy about two functions that have been changedsince 9.0.
1 parent0024e34 commitde623f3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

‎contrib/xml2/xml2--unpackaged--1.0.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ ALTER EXTENSION xml2 ADD function xpath_nodeset(text,text,text,text);
1313
ALTER EXTENSION xml2 ADD function xpath_string(text,text);
1414
ALTER EXTENSION xml2 ADD function xml_encode_special_chars(text);
1515
ALTER EXTENSION xml2 ADD function xml_valid(text);
16+
17+
-- xml_valid is now an alias for core xml_is_well_formed()
18+
19+
CREATE OR REPLACEFUNCTIONxml_valid(text) RETURNS bool
20+
AS'xml_is_well_formed'
21+
LANGUAGE INTERNAL STRICT STABLE;
22+
23+
-- xml_is_well_formed is now in core, not needed in extension.
24+
-- be careful to drop extension's copy not core's.
25+
26+
DROPFUNCTION @extschema@.xml_is_well_formed(text);

‎contrib/xml2/xml2.control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
comment = 'XPath querying and XSLT'
33
default_version = '1.0'
44
module_pathname = '$libdir/pgxml'
5-
relocatable = true
5+
# non-relocatable because xml2--unpackaged--1.0.sql needs to use @extschema@
6+
relocatable = false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp