Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
efb0423c
Commit
efb0423c
authored
13 years ago
by
Andrew Dunstan
Browse files
Options
Downloads
Patches
Plain Diff
Use the right interpreter for encoding test.
parent
ba00ab0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pl/plperl/expected/plperl.out
+1
-1
1 addition, 1 deletion
src/pl/plperl/expected/plperl.out
src/pl/plperl/sql/plperl.sql
+1
-1
1 addition, 1 deletion
src/pl/plperl/sql/plperl.sql
with
2 additions
and
2 deletions
src/pl/plperl/expected/plperl.out
+
1
−
1
View file @
efb0423c
...
@@ -656,7 +656,7 @@ CONTEXT: PL/Perl anonymous code block
...
@@ -656,7 +656,7 @@ CONTEXT: PL/Perl anonymous code block
--
--
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
CREATE OR REPLACE FUNCTION perl_zerob() RETURNS TEXT AS $$
return "abcd\0efg";
return "abcd\0efg";
$$ LANGUAGE plperl
u
;
$$ LANGUAGE plperl;
SELECT perl_zerob();
SELECT perl_zerob();
ERROR: invalid byte sequence for encoding "UTF8": 0x00
ERROR: invalid byte sequence for encoding "UTF8": 0x00
CONTEXT: PL/Perl function "perl_zerob"
CONTEXT: PL/Perl function "perl_zerob"
...
...
This diff is collapsed.
Click to expand it.
src/pl/plperl/sql/plperl.sql
+
1
−
1
View file @
efb0423c
...
@@ -429,7 +429,7 @@ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y; 1; $do$ LANGUAG
...
@@ -429,7 +429,7 @@ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y; 1; $do$ LANGUAG
--
--
CREATE
OR
REPLACE
FUNCTION
perl_zerob
()
RETURNS
TEXT
AS
$$
CREATE
OR
REPLACE
FUNCTION
perl_zerob
()
RETURNS
TEXT
AS
$$
return
"abcd
\0
efg"
;
return
"abcd
\0
efg"
;
$$
LANGUAGE
plperl
u
;
$$
LANGUAGE
plperl
;
SELECT
perl_zerob
();
SELECT
perl_zerob
();
-- make sure functions marked as VOID without an explicit return work
-- make sure functions marked as VOID without an explicit return work
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment