Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d84eb977
Commit
d84eb977
authored
Aug 26, 2012
by
David Taylor
Committed by
Frédéric Buclin
Aug 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 559539: [Oracle] whine.pl sets run_next incorrectly due to CURRENT_DATE
r/a=LpSolit
parent
efa1199a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Oracle.pm
Bugzilla/DB/Oracle.pm
+6
-0
No files found.
Bugzilla/DB/Oracle.pm
View file @
d84eb977
...
...
@@ -294,6 +294,9 @@ sub adjust_statement {
my
$is_select
=
(
$part
=~
m/^\s*SELECT\b/io
);
my
$has_from
=
(
$part
=~
m/\bFROM\b/io
)
if
$is_select
;
# Oracle includes the time in CURRENT_DATE.
$part
=~
s/\bCURRENT_DATE\b/TRUNC(CURRENT_DATE)/io
;
# Oracle use SUBSTR instead of SUBSTRING
$part
=~
s/\bSUBSTRING\b/SUBSTR/io
;
...
...
@@ -322,6 +325,9 @@ sub adjust_statement {
$has_from
=
(
$nonstring
=~
m/\bFROM\b/io
)
if
(
$is_select
and
!
$has_from
);
# Oracle includes the time in CURRENT_DATE.
$nonstring
=~
s/\bCURRENT_DATE\b/TRUNC(CURRENT_DATE)/io
;
# Oracle use SUBSTR instead of SUBSTRING
$nonstring
=~
s/\bSUBSTRING\b/SUBSTR/io
;
...
...
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