/src/duckdb/src/function/cast/pointer_cast.cpp
Line | Count | Source |
1 | | #include "duckdb/function/cast/default_casts.hpp" |
2 | | #include "duckdb/function/cast/vector_cast_helpers.hpp" |
3 | | |
4 | | namespace duckdb { |
5 | | |
6 | | BoundCastInfo DefaultCasts::PointerCastSwitch(BindCastInput &input, const LogicalType &source, |
7 | 0 | const LogicalType &target) { |
8 | | // now switch on the result type |
9 | 0 | switch (target.id()) { |
10 | 0 | case LogicalTypeId::VARCHAR: |
11 | | // pointer to varchar |
12 | 0 | return BoundCastInfo(&VectorCastHelpers::StringCast<uintptr_t, duckdb::CastFromPointer>); |
13 | 0 | default: |
14 | 0 | return nullptr; |
15 | 0 | } |
16 | 0 | } |
17 | | |
18 | | } // namespace duckdb |