Skip to content

Commit 5393c8e

Browse files
rouaultgithub-actions[bot]
authored andcommitted
Workaround sqlite 3.53.0 regression on sqlite3_mprintf()
See https://sqlite.org/forum/forumpost/e2421578f4 Breaks the factory.objectInsertion unit test, or more generally if using getInsertStatementsFor() with a geodetic datum with an anchor epoch. Which shouldn't affect that many people
1 parent d1ec9b3 commit 5393c8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/iso19111/factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ std::vector<std::string> DatabaseContext::Private::getInsertStatementsFor(
22312231
// ---------------------------------------------------------------------------
22322232

22332233
static std::string anchorEpochToStr(double val) {
2234-
constexpr int BUF_SIZE = 16;
2234+
constexpr int BUF_SIZE = 32;
22352235
char szBuffer[BUF_SIZE];
22362236
sqlite3_snprintf(BUF_SIZE, szBuffer, "%.3f", val);
22372237
return szBuffer;

0 commit comments

Comments
 (0)