Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
f94f59f7
Commit
f94f59f7
authored
Jan 24, 2011
by
Dave Partyka
Committed by
Kitware Robot
Jan 24, 2011
Browse files
Merge topic 'qt-no-stl'
8ed9dcc0
COMP: Fix additional compile errors.
parents
af1ac86a
8ed9dcc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
GUISupport/Qt/Testing/Cxx/TestQtSQLDatabase.cxx
View file @
f94f59f7
...
...
@@ -156,7 +156,7 @@ int TestQtSQLDatabase(int argc, char* argv[])
{
QString
createQuery
(
"CREATE TABLE IF NOT EXISTS people (name TEXT, age INTEGER, weight FLOAT)"
);
cout
<<
createQuery
.
toAscii
().
data
()
<<
endl
;
query
->
SetQuery
(
createQuery
.
toAscii
().
data
())
)
;
query
->
SetQuery
(
createQuery
.
toAscii
().
data
());
if
(
!
query
->
Execute
())
{
cerr
<<
"Create query failed"
<<
endl
;
...
...
@@ -167,7 +167,7 @@ int TestQtSQLDatabase(int argc, char* argv[])
{
QString
insertQuery
=
QString
(
"INSERT INTO people VALUES('John Doe %1', %1, %2)"
).
arg
(
i
).
arg
(
10
*
i
);
cout
<<
insertQuery
.
toAscii
().
data
()
<<
endl
;
query
->
SetQuery
(
insertQuery
.
toAscii
().
data
())
)
;
query
->
SetQuery
(
insertQuery
.
toAscii
().
data
());
if
(
!
query
->
Execute
())
{
cerr
<<
"Insert query failed"
<<
endl
;
...
...
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