Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simple-survey
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
simple-survey
Commits
c2ff47f8
Commit
c2ff47f8
authored
Jan 11, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- PostgreSQL 9.2 compatibility fixes
related to <sequence>.nextval
parent
207e2590
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
10 deletions
+9
-10
question-add-3-postgresql.xql
www/admin/question-add-3-postgresql.xql
+1
-1
question-add-3.tcl
www/admin/question-add-3.tcl
+3
-3
survey-category-add-postgresql.xql
www/admin/survey-category-add-postgresql.xql
+1
-2
survey-create-2-postgresql.xql
www/admin/survey-create-2-postgresql.xql
+2
-2
survey-create-2.tcl
www/admin/survey-create-2.tcl
+2
-2
No files found.
www/admin/question-add-3-postgresql.xql
View file @
c2ff47f8
...
...
@@ -27,7 +27,7 @@
<fullquery
name=
"get_choice_id"
>
<querytext>
select
survsimp_choice_id_sequence.nextval as choice_id
select
nextval('survsimp_choice_id_seq') as choice_id from dual
</querytext>
</fullquery>
...
...
www/admin/question-add-3.tcl
View file @
c2ff47f8
...
...
@@ -126,7 +126,7 @@ if { $type == "scored" } {
set count 0
foreach response
$responses
{
set trimmed_response
[
string
trim
$response
]
set choice_id
[
db_string get_choice_id
"select
survsimp_choice_id_sequence.nextval
as choice_id from dual"
]
set choice_id
[
db_string get_choice_id
"select
nextval('survsimp_choice_id_seq')
as choice_id from dual"
]
db_dml insert_survsimp_question_choice
"
insert into survsimp_question_choices
(choice_id, question_id, label, sort_order)
...
...
@@ -226,9 +226,9 @@ if { $type == "scored" } {
continue
}
### added this next line to
set choice_id
[
db_string get_choice_id
"select
survsimp_choice_id_sequence.nextval
as choice_id from dual"
]
set choice_id
[
db_string get_choice_id
"select
nextval('survsimp_choice_id_seq')
as choice_id from dual"
]
db_dml insert_survsimp_question_choice
"insert into survsimp_question_choices (choice_id, question_id, label, sort_order)
values (
survsimp_choice_id_sequence.nextval
, :question_id, :trimmed_response, :count)"
values (
nextval('survsimp_choice_id_seq')
, :question_id, :trimmed_response, :count)"
incr count
}
}
...
...
www/admin/survey-category-add-postgresql.xql
View file @
c2ff47f8
...
...
@@ -5,8 +5,7 @@
<fullquery
name=
"category_id_next_sequence"
>
<querytext>
select
category_id_sequence.nextval
select category_id_sequence.nextval
</querytext>
</fullquery>
...
...
www/admin/survey-create-2-postgresql.xql
View file @
c2ff47f8
...
...
@@ -27,14 +27,14 @@
<fullquery
name=
"next_variable_id"
>
<querytext>
select
survsimp_variable_id_sequence.nextval
select
nextval('survsimp_variable_id_seq') from dual
</querytext>
</fullquery>
<fullquery
name=
"next_logic_id"
>
<querytext>
select
survsimp_logic_id_sequence.nextval
select
nextval('survsimp_logic_id_seq') from dual
</querytext>
</fullquery>
...
...
www/admin/survey-create-2.tcl
View file @
c2ff47f8
...
...
@@ -118,7 +118,7 @@ if {$checked_p == "f"} {
foreach variable_name
[
split
$variable
_names
","
]
{
set variable_id
[
db_string next_variable_id
"select
survsimp_variable_id_sequence.nextval
from dual"
]
set variable_id
[
db_string next_variable_id
"select
nextval('survsimp_variable_id_seq')
from dual"
]
db_dml add_variable_name
"insert into survsimp_variables
(variable_id, variable_name)
...
...
@@ -131,7 +131,7 @@ if {$checked_p == "f"} {
(:variable_id, :survey_id)"
}
set logic_id
[
db_string next_logic_id
"select
survsimp_logic_id_sequence.nextval
from dual"
]
set logic_id
[
db_string next_logic_id
"select
nextval('survsimp_logic_id_seq')
from dual"
]
db_dml add_logic
"insert into survsimp_logic
(logic_id, logic)
values
...
...
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