Skip to content

Commit

Permalink
"IF NOT EXISTS" is not supported in MySQL 5.7 for CREATE FUNCTION
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Dec 18, 2023
1 parent 0d487d9 commit a4c7a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tap/tests/reg_test_4402-mysql_fields-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a4c7a4f

Please sign in to comment.