Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acf-db
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACF
acf-db
Commits
42814255
Commit
42814255
authored
Nov 04, 2014
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify dbmodelfunctions to pass port as number in to connect
parent
2fbbced4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/dbmodelfunctions.lua
lib/dbmodelfunctions.lua
+2
-3
No files found.
lib/dbmodelfunctions.lua
View file @
42814255
...
...
@@ -24,7 +24,7 @@ local function get_connection(dbase, self, clientdata)
for
n
,
v
in
pairs
(
retval
.
value
.
connection
.
value
)
do
if
dbase
[
n
]
then
retval
.
value
.
connection
.
value
[
n
]
=
nil
elseif
n
==
"engine"
then
elseif
n
==
"engine"
or
n
==
"port"
then
dbase
[
n
]
=
tonumber
(
v
.
value
)
else
dbase
[
n
]
=
v
.
value
...
...
@@ -37,7 +37,7 @@ end
local
function
fill_connection
(
dbase
,
self
,
retval
)
-- Fill in dbase with the values from the cfe retval
for
n
,
v
in
pairs
(
retval
.
value
.
connection
.
value
)
do
if
n
==
"engine"
then
if
n
==
"engine"
or
n
==
"port"
then
dbase
[
n
]
=
tonumber
(
v
.
value
)
else
dbase
[
n
]
=
v
.
value
...
...
@@ -83,7 +83,6 @@ function mymodule.list_tables(dbase, self, clientdata)
if
not
res
and
err
then
retval
.
value
.
connection
.
errtxt
=
err
end
return
retval
end
...
...
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