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
3300faf8
Commit
3300faf8
authored
Oct 28, 2014
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix database engine values in dbmodelfunctions.lua
parent
ff7d801f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/dbmodelfunctions.lua
lib/dbmodelfunctions.lua
+3
-1
No files found.
lib/dbmodelfunctions.lua
View file @
3300faf8
...
...
@@ -10,7 +10,7 @@ local function get_connection(dbase, self, clientdata)
retval
.
value
.
connection
=
cfe
({
type
=
"group"
,
value
=
{},
label
=
"Database Connection"
,
seq
=
0
})
retval
.
value
.
connection
.
value
.
engine
=
cfe
({
type
=
"select"
,
label
=
"Database Engine"
,
option
=
{},
key
=
true
,
seq
=
1
})
for
n
,
v
in
pairs
(
db
.
engine
)
do
retval
.
value
.
connection
.
value
.
engine
.
option
[
#
retval
.
value
.
connection
.
value
.
engine
.
option
+
1
]
=
{
name
=
n
,
value
=
v
}
retval
.
value
.
connection
.
value
.
engine
.
option
[
#
retval
.
value
.
connection
.
value
.
engine
.
option
+
1
]
=
{
label
=
n
,
value
=
tostring
(
v
)
}
end
retval
.
value
.
connection
.
value
.
database
=
cfe
({
label
=
"Database"
,
key
=
true
,
seq
=
2
})
retval
.
value
.
connection
.
value
.
user
=
cfe
({
label
=
"User"
,
key
=
true
,
seq
=
3
})
...
...
@@ -24,6 +24,8 @@ 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
dbase
[
n
]
=
tonumber
(
v
.
value
)
else
dbase
[
n
]
=
v
.
value
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