From a4c7a4f841e20aec44c19b4299ff94f28d6f98cb Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Mon, 18 Dec 2023 13:31:13 +0500 Subject: [PATCH] "IF NOT EXISTS" is not supported in MySQL 5.7 for CREATE FUNCTION --- test/tap/tests/reg_test_4402-mysql_fields-t.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tap/tests/reg_test_4402-mysql_fields-t.cpp b/test/tap/tests/reg_test_4402-mysql_fields-t.cpp index bc9c098082..7ab0a0bbdb 100644 --- a/test/tap/tests/reg_test_4402-mysql_fields-t.cpp +++ b/test/tap/tests/reg_test_4402-mysql_fields-t.cpp @@ -65,10 +65,10 @@ int main(int argc, char** argv) { MYSQL_QUERY__(proxysql, "CREATE DATABASE testdb"); diag("Creating echo_int function..."); - MYSQL_QUERY__(proxysql, "CREATE FUNCTION IF NOT EXISTS testdb.echo_int(N INT) RETURNS INT DETERMINISTIC RETURN N;"); + MYSQL_QUERY__(proxysql, "CREATE FUNCTION testdb.echo_int(N INT) RETURNS INT DETERMINISTIC RETURN N;"); diag("Creating dummy_table..."); - MYSQL_QUERY__(proxysql, "CREATE TABLE IF NOT EXISTS testdb.dummy_table(data VARCHAR(10))"); + MYSQL_QUERY__(proxysql, "CREATE TABLE testdb.dummy_table(data VARCHAR(10))"); // wait for replication std::this_thread::sleep_for(std::chrono::seconds(2));