From e20cba950dbac0d104d2015da1cc5bf1366aa8a3 Mon Sep 17 00:00:00 2001 From: RensDofferhoff <20978635+RensDofferhoff@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:57:18 +0200 Subject: [PATCH] Fix max column (#5636) * add sqlite compile options to increase column limit * Fix CSV loader segfault --------- Co-authored-by: Rens --- Desktop/data/importers/csv/csv.cpp | 1 + conanfile.txt | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Desktop/data/importers/csv/csv.cpp b/Desktop/data/importers/csv/csv.cpp index 3d1ce29b5d..50009e39f2 100644 --- a/Desktop/data/importers/csv/csv.cpp +++ b/Desktop/data/importers/csv/csv.cpp @@ -402,6 +402,7 @@ void CSV::determineNumRows() if (i >= _utf8BufferEndPos - 1) { + _utf8BufferEndPos = 0; bool success = readUtf8(); if (success) i = -1; diff --git a/conanfile.txt b/conanfile.txt index f0e1d80fcf..f8f27a7ac8 100644 --- a/conanfile.txt +++ b/conanfile.txt @@ -15,7 +15,7 @@ jsoncpp/1.9.5 openssl/3.0.10 bison/3.7.6 brotli/1.0.9 -sqlite3/3.38.5 +sqlite3/3.46.0 gmp/6.3.0 mpfr/4.2.1 @@ -24,4 +24,5 @@ CMakeDeps CMakeToolchain [options] -brotli/:shared=True \ No newline at end of file +brotli/:shared=True +sqlite3*:max_column=32767