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
bc0be355
Commit
bc0be355
authored
Mar 08, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust PL regression tests for escape_string_warning.
parent
daab4a10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
src/pl/plpython/expected/plpython_function.out
src/pl/plpython/expected/plpython_function.out
+3
-3
src/pl/plpython/sql/plpython_function.sql
src/pl/plpython/sql/plpython_function.sql
+3
-3
src/pl/tcl/expected/pltcl_setup.out
src/pl/tcl/expected/pltcl_setup.out
+4
-4
src/pl/tcl/sql/pltcl_setup.sql
src/pl/tcl/sql/pltcl_setup.sql
+5
-5
No files found.
src/pl/plpython/expected/plpython_function.out
View file @
bc0be355
...
...
@@ -259,13 +259,13 @@ return seq
-- Universal Newline Support
--
CREATE OR REPLACE FUNCTION newline_lf() RETURNS integer AS
'x = 100\ny = 23\nreturn x + y\n'
E
'x = 100\ny = 23\nreturn x + y\n'
LANGUAGE plpythonu;
CREATE OR REPLACE FUNCTION newline_cr() RETURNS integer AS
'x = 100\ry = 23\rreturn x + y\r'
E
'x = 100\ry = 23\rreturn x + y\r'
LANGUAGE plpythonu;
CREATE OR REPLACE FUNCTION newline_crlf() RETURNS integer AS
'x = 100\r\ny = 23\r\nreturn x + y\r\n'
E
'x = 100\r\ny = 23\r\nreturn x + y\r\n'
LANGUAGE plpythonu;
--
-- Unicode error handling
...
...
src/pl/plpython/sql/plpython_function.sql
View file @
bc0be355
...
...
@@ -303,15 +303,15 @@ return seq
--
CREATE
OR
REPLACE
FUNCTION
newline_lf
()
RETURNS
integer
AS
'x = 100
\n
y = 23
\n
return x + y
\n
'
E
'x = 100
\n
y = 23
\n
return x + y
\n
'
LANGUAGE
plpythonu
;
CREATE
OR
REPLACE
FUNCTION
newline_cr
()
RETURNS
integer
AS
'x = 100
\r
y = 23
\r
return x + y
\r
'
E
'x = 100
\r
y = 23
\r
return x + y
\r
'
LANGUAGE
plpythonu
;
CREATE
OR
REPLACE
FUNCTION
newline_crlf
()
RETURNS
integer
AS
'x = 100
\r\n
y = 23
\r\n
return x + y
\r\n
'
E
'x = 100
\r\n
y = 23
\r\n
return x + y
\r\n
'
LANGUAGE
plpythonu
;
--
...
...
src/pl/tcl/expected/pltcl_setup.out
View file @
bc0be355
...
...
@@ -38,7 +38,7 @@ create table T_dta2 (
--
-- Function to check key existance in T_pkey1
--
create function check_pkey1_exists(int4, bpchar) returns bool as '
create function check_pkey1_exists(int4, bpchar) returns bool as
E
'
if {![info exists GD]} {
set GD(plan) [spi_prepare \\
"select 1 from T_pkey1 \\
...
...
@@ -146,7 +146,7 @@ create trigger pkey1_before before insert or update or delete on T_pkey1
-- Trigger function to check for duplicate keys in T_pkey2
-- and to force key2 to be upper case only without leading whitespaces
--
create function trig_pkey2_before() returns trigger as '
create function trig_pkey2_before() returns trigger as
E
'
#
# Prepare plan on first call
#
...
...
@@ -185,7 +185,7 @@ create trigger pkey2_before before insert or update on T_pkey2
-- in T_pkey2 are done so the trigger for primkey check on T_dta2
-- fired on our updates will see the new key values in T_pkey2.
--
create function trig_pkey2_after() returns trigger as '
create function trig_pkey2_after() returns trigger as
E
'
#
# Prepare plans on first call
#
...
...
@@ -268,7 +268,7 @@ create trigger pkey2_after after update or delete on T_pkey2
--
-- Generic trigger function to check references in T_dta1 and T_dta2
--
create function check_primkey() returns trigger as '
create function check_primkey() returns trigger as
E
'
#
# For every trigger/relation pair we create
# a saved plan and hold them in GD
...
...
src/pl/tcl/sql/pltcl_setup.sql
View file @
bc0be355
...
...
@@ -44,7 +44,7 @@ create table T_dta2 (
--
-- Function to check key existance in T_pkey1
--
create
function
check_pkey1_exists
(
int4
,
bpchar
)
returns
bool
as
'
create
function
check_pkey1_exists
(
int4
,
bpchar
)
returns
bool
as
E
'
if {![info exists GD]} {
set GD(plan) [spi_prepare
\\
"select 1 from T_pkey1
\\
...
...
@@ -64,7 +64,7 @@ create function check_pkey1_exists(int4, bpchar) returns bool as '
--
-- Trigger function on every change to T_pkey1
--
create
function
trig_pkey1_before
()
returns
trigger
as
'
create
function
trig_pkey1_before
()
returns
trigger
as
E
'
#
# Create prepared plans on the first call
#
...
...
@@ -158,7 +158,7 @@ create trigger pkey1_before before insert or update or delete on T_pkey1
-- Trigger function to check for duplicate keys in T_pkey2
-- and to force key2 to be upper case only without leading whitespaces
--
create
function
trig_pkey2_before
()
returns
trigger
as
'
create
function
trig_pkey2_before
()
returns
trigger
as
E
'
#
# Prepare plan on first call
#
...
...
@@ -201,7 +201,7 @@ create trigger pkey2_before before insert or update on T_pkey2
-- in T_pkey2 are done so the trigger for primkey check on T_dta2
-- fired on our updates will see the new key values in T_pkey2.
--
create
function
trig_pkey2_after
()
returns
trigger
as
'
create
function
trig_pkey2_after
()
returns
trigger
as
E
'
#
# Prepare plans on first call
#
...
...
@@ -288,7 +288,7 @@ create trigger pkey2_after after update or delete on T_pkey2
--
-- Generic trigger function to check references in T_dta1 and T_dta2
--
create
function
check_primkey
()
returns
trigger
as
'
create
function
check_primkey
()
returns
trigger
as
E
'
#
# For every trigger/relation pair we create
# a saved plan and hold them in GD
...
...
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