| 99 | } |
| 100 | |
| 101 | static void WriteDecimalSlot( |
| 102 | const ColumnType& type, double value, void* slot) { |
| 103 | bool overflow = false; |
| 104 | switch (type.GetByteSize()) { |
| 105 | case 4: |
| 106 | *reinterpret_cast<Decimal4Value*>(slot) = |
| 107 | Decimal4Value::FromDouble(type, value, false, &overflow); |
| 108 | case 8: |
| 109 | *reinterpret_cast<Decimal8Value*>(slot) = |
| 110 | Decimal8Value::FromDouble(type, value, false, &overflow); |
| 111 | case 16: |
| 112 | *reinterpret_cast<Decimal16Value*>(slot) = |
| 113 | Decimal16Value::FromDouble(type, value, false, &overflow); |
| 114 | } |
| 115 | DCHECK(!overflow); |
| 116 | } |
| 117 | |
| 118 | QueryScanner::QueryScanner(RuntimeState* state, RuntimeProfile* profile, |
| 119 | TSystemTableName::type table_name) |
no test coverage detected