| 66 | } |
| 67 | |
| 68 | static void validateParam(const std::string& paramName, Value* newVal, Value* oldVal) { |
| 69 | if (newVal->getDataType().getLogicalTypeID() == LogicalTypeID::POINTER && |
| 70 | newVal->getValue<uint8_t*>() != oldVal->getValue<uint8_t*>()) { |
| 71 | throw BinderException(std::format( |
| 72 | "When preparing the current statement the dataframe passed into parameter " |
| 73 | "'{}' was different from the one provided during prepare. Dataframes parameters " |
| 74 | "are only used during prepare; please make sure that they are either not passed into " |
| 75 | "execute or they match the one passed during prepare.", |
| 76 | paramName)); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | std::unordered_set<std::string> PreparedStatement::getKnownParameters() { |
| 81 | std::unordered_set<std::string> result; |
no test coverage detected