Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Data API Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Data API Reader
Commits
14242013
Commit
14242013
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fixed SQL parameters variable settings
parent
045ca0bf
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
src/utils_DB_connection.jl
+2
-2
2 additions, 2 deletions
src/utils_DB_connection.jl
with
2 additions
and
2 deletions
src/utils_DB_connection.jl
+
2
−
2
View file @
14242013
...
...
@@ -17,9 +17,9 @@ function establish_connection(host::String, user::String, password::String, dbna
# Establish connection
conn
=
MySQL
.
Connection
(
host
,
user
,
password
,
dbname
,
port
,
"nothing"
)
# Temporarily increase max_allowed_packet
size_query
=
"SET
SESSION
max_allowed_packet=1073741824;"
# Sets max_allowed_packet to 1GB
size_query
=
"SET
GLOBAL
max_allowed_packet=1073741824;"
# Sets max_allowed_packet to 1GB
timeout_query
=
"SET SESSION wait_timeout = 31536000;"
# Sets wait_timeout to 1 year
maxtime_query
=
"SET SESSION
max_execution_time =
604800000;"
# Sets max_execution_time to 1 week
maxtime_query
=
"SET SESSION
MAX_STATEMENT_TIME=
604800000;"
# Sets max_execution_time to 1 week
try
# Execute session variable adjustments
DBInterface
.
execute
(
conn
,
size_query
)
...
...
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