|
|
@ -68,7 +68,7 @@ void TQSqlExtension::bindValue( const TQString& placeholder, const TQVariant& va
|
|
|
|
if ( index.contains( (int)values.count() ) ) {
|
|
|
|
if ( index.contains( (int)values.count() ) ) {
|
|
|
|
index[ (int)values.count() ] = placeholder;
|
|
|
|
index[ (int)values.count() ] = placeholder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
values[ placeholder ] = TQtParam( val, tp );
|
|
|
|
values[ placeholder ] = TQSqlParam( val, tp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TQSqlExtension::bindValue( int pos, const TQVariant& val, TQSql::ParameterType tp )
|
|
|
|
void TQSqlExtension::bindValue( int pos, const TQVariant& val, TQSql::ParameterType tp )
|
|
|
@ -76,7 +76,7 @@ void TQSqlExtension::bindValue( int pos, const TQVariant& val, TQSql::ParameterT
|
|
|
|
bindm = BindByPosition;
|
|
|
|
bindm = BindByPosition;
|
|
|
|
index[ pos ] = TQString::number( pos );
|
|
|
|
index[ pos ] = TQString::number( pos );
|
|
|
|
TQString nm = TQString::number( pos );
|
|
|
|
TQString nm = TQString::number( pos );
|
|
|
|
values[ nm ] = TQtParam( val, tp );
|
|
|
|
values[ nm ] = TQSqlParam( val, tp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TQSqlExtension::addBindValue( const TQVariant& val, TQSql::ParameterType tp )
|
|
|
|
void TQSqlExtension::addBindValue( const TQVariant& val, TQSql::ParameterType tp )
|
|
|
@ -130,7 +130,7 @@ TQVariant TQSqlExtension::boundValue( int pos ) const
|
|
|
|
|
|
|
|
|
|
|
|
TQMap<TQString, TQVariant> TQSqlExtension::boundValues() const
|
|
|
|
TQMap<TQString, TQVariant> TQSqlExtension::boundValues() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQMap<TQString, TQtParam>::ConstIterator it;
|
|
|
|
TQMap<TQString, TQSqlParam>::ConstIterator it;
|
|
|
|
TQMap<TQString, TQVariant> m;
|
|
|
|
TQMap<TQString, TQVariant> m;
|
|
|
|
if ( bindm == BindByName ) {
|
|
|
|
if ( bindm == BindByName ) {
|
|
|
|
for ( it = values.begin(); it != values.end(); ++it )
|
|
|
|
for ( it = values.begin(); it != values.end(); ++it )
|
|
|
|