| 118 | } |
| 119 | |
| 120 | long long int redis_result::get_integer64(bool* success /* = NULL */) const |
| 121 | { |
| 122 | if (success) { |
| 123 | *success = false; |
| 124 | } |
| 125 | if (result_type_ != REDIS_RESULT_INTEGER) { |
| 126 | return -1; |
| 127 | } |
| 128 | const char* ptr = get(0); |
| 129 | if (ptr == NULL || *ptr == 0) { |
| 130 | return -1; |
| 131 | } |
| 132 | if (success) { |
| 133 | *success = true; |
| 134 | } |
| 135 | return acl_atoi64(ptr); |
| 136 | } |
| 137 | |
| 138 | double redis_result::get_double(bool* success /* = NULL */) const |
| 139 | { |
no test coverage detected