Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
1d652c6c
Verified
Commit
1d652c6c
authored
Jun 12, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Fix SQL request
parent
8b0d017a
Pipeline
#79807
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/autosql.cpp
View file @
1d652c6c
...
...
@@ -450,7 +450,7 @@ void Database::saveEnsemble(Automate& a) const {
//Il nous faut prendre de chaque état : ensemble (idEns), indice, label, r, g, b
for
(
unsigned
int
i
=
0
;
i
<
enseEtats
.
getNbEtats
()
;
i
++
)
{
query
.
prepare
(
"INSERT INTO Etats VALUES (:ensemble, :indice,
'
:label
'
, :r, :g, :b)"
);
query
.
prepare
(
"INSERT INTO Etats VALUES (:ensemble, :indice, :label, :r, :g, :b)"
);
query
.
bindValue
(
":ensemble"
,
idEns
);
query
.
bindValue
(
":indice"
,
enseEtats
.
getEtat
(
i
).
getIndice
());
query
.
bindValue
(
":label"
,
QString
::
fromStdString
(
enseEtats
.
getEtat
(
i
).
getLabel
()));
...
...
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