(&self, context: &mut Context, out: &mut DynQuery, value: f32)
| 109 | fn write_value_f32(&self, context: &mut Context, out: &mut AnyQuery, value: f32) { |
| 110 | if value.is_infinite() { |
| 111 | if value.is_sign_negative() { |
| 112 | out.push('-'); |
| 113 | } |
| 114 | out.push_str("1.0e+10000"); |
| 115 | return; |
| 116 | } |
| 117 | if value.is_nan() { |
| 118 | log::warn!("SQLite does not support float NaN values, will write NULL instead"); |
| 119 | self.write_null(context, out); |
| 120 | return; |
| 121 | } |
| 122 | GenericSqlWriter::new().write_value_f32(context, out, value); |
| 123 | } |
| 124 | |
| 125 | fn write_value_f64(&self, context: &mut Context, out: &mut AnyQuery, value: f64) { |
| 126 | if value.is_infinite() { |
| 127 | if value.is_sign_negative() { |
| 128 | out.push('-'); |
nothing calls this directly
no test coverage detected