Variable block
| 374 | |
| 375 | //! Variable block |
| 376 | class dsql_var : public Firebird::PermanentStorage |
| 377 | { |
| 378 | public: |
| 379 | enum Type |
| 380 | { |
| 381 | TYPE_INPUT, |
| 382 | TYPE_OUTPUT, |
| 383 | TYPE_LOCAL, |
| 384 | TYPE_HIDDEN |
| 385 | }; |
| 386 | |
| 387 | public: |
| 388 | explicit dsql_var(MemoryPool& p) |
| 389 | : PermanentStorage(p), |
| 390 | field(NULL), |
| 391 | type(TYPE_INPUT), |
| 392 | msgNumber(0), |
| 393 | msgItem(0), |
| 394 | number(0) |
| 395 | { |
| 396 | desc.clear(); |
| 397 | } |
| 398 | |
| 399 | dsql_fld* field; // Field on which variable is based |
| 400 | Type type; // Input, output, local or hidden variable |
| 401 | USHORT msgNumber; // Message number containing variable |
| 402 | USHORT msgItem; // Item number in message |
| 403 | USHORT number; // Local variable number |
| 404 | dsc desc; |
| 405 | }; |
| 406 | |
| 407 | |
| 408 | // Symbolic names for international text types |