Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
ffea978e
Commit
ffea978e
authored
2 years ago
by
Jean-Laurent DUZANT
Browse files
Options
Downloads
Patches
Plain Diff
FIX #19580 TIME 0 drop function if exist
parent
d8a93e66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/structure.sql
+4
-2
4 additions, 2 deletions
sql/structure.sql
with
4 additions
and
2 deletions
sql/structure.sql
+
4
−
2
View file @
ffea978e
...
...
@@ -1555,7 +1555,8 @@ CREATE TABLE address_sectors
)
WITH
(
OIDS
=
FALSE
);
CREATE
OR
REPLACE
FUNCTION
public
.
increase_chrono
(
chrono_id_seq
text
)
returns
table
(
chrono_id
bigint
)
as
$$
DROP
FUNCTION
IF
EXISTS
increase_chrono
;
CREATE
OR
REPLACE
FUNCTION
increase_chrono
(
chrono_id_seq
text
)
returns
table
(
retval
bigint
)
as
$$
DECLARE
retval
bigint
;
BEGIN
...
...
@@ -1563,10 +1564,11 @@ BEGIN
EXECUTE
'CREATE SEQUENCE '
||
chrono_id_seq
||
' INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 100 CACHE 1;'
;
END
IF
;
SELECT
nextval
(
chrono_id_seq
)
INTO
retval
;
RETURN
QUERY
SELECT
retval
;
RETURN
QUERY
SELECT
retval
;
END
;
$$
LANGUAGE
plpgsql
;
DROP
FUNCTION
IF
EXISTS
reset_chronos
;
CREATE
OR
REPLACE
FUNCTION
public
.
reset_chronos
()
returns
void
as
$$
DECLARE
sequence_name
varchar
;
...
...
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