From 3a3b1d7d9dd66c95e0202d363a788438ec1c8ca0 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Wed, 3 Jan 2024 23:59:39 +0100 Subject: [PATCH] Fix nullptr literal appearing in SQL code Closes #2128. --- tools/fcmp/mpdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/fcmp/mpdb.cpp b/tools/fcmp/mpdb.cpp index e04d32432d..3d6b323a5c 100644 --- a/tools/fcmp/mpdb.cpp +++ b/tools/fcmp/mpdb.cpp @@ -164,8 +164,8 @@ void create_mpdb(const char *filename, bool scenario_db) if (ret == SQLITE_OK) { ret = mpdb_query(*handle, - "create table modpacks (name VARCHAR(60) NOT nullptr, " - "type VARCHAR(32), version VARCHAR(32) NOT nullptr);"); + "create table modpacks (name VARCHAR(60) NOT null, " + "type VARCHAR(32), version VARCHAR(32) NOT null);"); } if (ret == SQLITE_OK) {