|
|
@ -68,7 +68,7 @@ void QSqlExtension::bindValue( const QString& placeholder, const QVariant& val,
|
|
|
|
if ( index.contains( (int)values.count() ) ) {
|
|
|
|
if ( index.contains( (int)values.count() ) ) {
|
|
|
|
index[ (int)values.count() ] = placeholder;
|
|
|
|
index[ (int)values.count() ] = placeholder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
values[ placeholder ] = QtParam( val, tp );
|
|
|
|
values[ placeholder ] = QSqlParam( val, tp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QSqlExtension::bindValue( int pos, const QVariant& val, QSql::ParameterType tp )
|
|
|
|
void QSqlExtension::bindValue( int pos, const QVariant& val, QSql::ParameterType tp )
|
|
|
@ -76,7 +76,7 @@ void QSqlExtension::bindValue( int pos, const QVariant& val, QSql::ParameterType
|
|
|
|
bindm = BindByPosition;
|
|
|
|
bindm = BindByPosition;
|
|
|
|
index[ pos ] = QString::number( pos );
|
|
|
|
index[ pos ] = QString::number( pos );
|
|
|
|
QString nm = QString::number( pos );
|
|
|
|
QString nm = QString::number( pos );
|
|
|
|
values[ nm ] = QtParam( val, tp );
|
|
|
|
values[ nm ] = QSqlParam( val, tp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void QSqlExtension::addBindValue( const QVariant& val, QSql::ParameterType tp )
|
|
|
|
void QSqlExtension::addBindValue( const QVariant& val, QSql::ParameterType tp )
|
|
|
@ -130,7 +130,7 @@ QVariant QSqlExtension::boundValue( int pos ) const
|
|
|
|
|
|
|
|
|
|
|
|
QMap<QString, QVariant> QSqlExtension::boundValues() const
|
|
|
|
QMap<QString, QVariant> QSqlExtension::boundValues() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QMap<QString, QtParam>::ConstIterator it;
|
|
|
|
QMap<QString, QSqlParam>::ConstIterator it;
|
|
|
|
QMap<QString, QVariant> m;
|
|
|
|
QMap<QString, QVariant> m;
|
|
|
|
if ( bindm == BindByName ) {
|
|
|
|
if ( bindm == BindByName ) {
|
|
|
|
for ( it = values.begin(); it != values.end(); ++it )
|
|
|
|
for ( it = values.begin(); it != values.end(); ++it )
|
|
|
|