Definition at line 188 of file TnFXSQLDB_ipc.h. 00189 { 00190 s >> i.type >> i.data.length; 00191 switch(i.type) 00192 { 00193 case TnFXSQLDB::Null: 00194 break; 00195 case TnFXSQLDB::VarChar: 00196 case TnFXSQLDB::Char: 00197 case TnFXSQLDB::WVarChar: 00198 case TnFXSQLDB::WChar: 00199 { 00200 FXERRHM(i.data.text=(FXchar *) malloc(i.data.length+1)); 00201 i.mydata=true; 00202 s.readRawBytes(i.data.text, i.data.length+1); 00203 break; 00204 } 00205 case TnFXSQLDB::TinyInt: 00206 s >> i.data.tinyint; 00207 break; 00208 case TnFXSQLDB::SmallInt: 00209 s >> i.data.smallint; 00210 break; 00211 case TnFXSQLDB::Integer: 00212 s >> i.data.integer; 00213 break; 00214 case TnFXSQLDB::BigInt: 00215 case TnFXSQLDB::Decimal: 00216 case TnFXSQLDB::Numeric: 00217 s >> i.data.bigint; 00218 break; 00219 00220 case TnFXSQLDB::Real: 00221 s >> i.data.real; 00222 break; 00223 case TnFXSQLDB::Double: 00224 case TnFXSQLDB::Float: 00225 s >> i.data.double_; 00226 break; 00227 00228 case TnFXSQLDB::Timestamp: 00229 case TnFXSQLDB::Date: 00230 case TnFXSQLDB::Time: 00231 s >> *(FXTime *)(void *) i.data.timestamp; 00232 break; 00233 00234 case TnFXSQLDB::BLOB: 00235 { 00236 FXERRHM(i.data.blob=malloc(i.data.length)); 00237 i.mydata=true; 00238 s.readRawBytes((char *) i.data.blob, i.data.length); 00239 break; 00240 } 00241 } 00242 return s; 00243 }
|