Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_sql_kernel_qsqlresult_snippet.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
//! [2]
5
if
(qstrcmp(v.typeName(),
"PGresult*"
) == 0) {
6
PGresult *handle = *
static_cast
<PGresult **>(v.data());
7
if
(handle) {
8
// ...
9
}
10
}
11
12
if
(qstrcmp(v.typeName(),
"MYSQL_STMT*"
) == 0) {
13
MYSQL_STMT *handle = *
static_cast
<MYSQL_STMT **>(v.data());
14
if
(handle) {
15
// ...
16
}
17
}
18
//! [2]
qtbase
src
sql
doc
snippets
code
src_sql_kernel_qsqlresult_snippet.cpp
Generated on
for Qt by
1.14.0