dev
Bill 2 years ago
parent 613941ce06
commit ec5bcda74c

@ -230,6 +230,9 @@
<ItemGroup> <ItemGroup>
<ClCompile Include="..\out.cpp" /> <ClCompile Include="..\out.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ClInclude Include="..\udf.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>

@ -16,8 +16,7 @@ constexpr static inline size_t count(const T&) { return 1; }
// TODO: Specializations for dt/str/none // TODO: Specializations for dt/str/none
template<class T, template<typename ...> class VT> template<class T, template<typename ...> class VT>
// types::GetLongType<T> types::GetLongType<T> sum(const VT<T>& v) {
LL_Type sum(const VT<T>& v) {
types::GetLongType<T> ret = 0; types::GetLongType<T> ret = 0;
for (const auto& _v : v) for (const auto& _v : v)
ret += _v; ret += _v;

@ -333,9 +333,9 @@ int test_main()
//printf("sibal: %p %p\n", aa, bb); //printf("sibal: %p %p\n", aa, bb);
const char* qs[]= { const char* qs[]= {
"CREATE TABLE network(src VARCHAR(3), dst VARCHAR(3), len INT, _time INT);", "CREATE TABLE test1(a INT, b INT, c INT, d INT);",
"COPY OFFSET 2 INTO network FROM 'c:/Users/sunyi/Desktop/AQuery2/data/network.csv' ON SERVER USING DELIMITERS ',';", "COPY OFFSET 2 INTO test1 FROM 'w:/gg/AQuery++/data/test.csv' ON SERVER USING DELIMITERS ',';",
"SELECT src, dst, len, _time FROM network ORDER BY src, dst, _time", "SELECT sum(a), b, d, c FROM test1 GROUP BY c, b, d ORDER BY b ;",
}; };
n_recv = sizeof(qs)/(sizeof (char*)); n_recv = sizeof(qs)/(sizeof (char*));
n_recvd = const_cast<char**>(qs); n_recvd = const_cast<char**>(qs);
@ -354,7 +354,7 @@ int test_main()
cxt->log("handle: %p\n", handle); cxt->log("handle: %p\n", handle);
if (handle) { if (handle) {
cxt->log("inner\n"); cxt->log("inner\n");
code_snippet c = reinterpret_cast<code_snippet>(dlsym(handle, "dll_54aqwy")); code_snippet c = reinterpret_cast<code_snippet>(dlsym(handle, "dll_C4nJZu"));
cxt->log("routine: %p\n", c); cxt->log("routine: %p\n", c);
if (c) { if (c) {
cxt->log("inner\n"); cxt->log("inner\n");

Loading…
Cancel
Save