From fb2e3ef029b8095917d367f7bc707a41cdee4488 Mon Sep 17 00:00:00 2001 From: Chad Whitely Date: Tue, 11 Jun 2019 14:17:35 -0700 Subject: [PATCH] Cleartext syntax changes --- source/apphelpers.pas | 2 +- source/dbconnection.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/apphelpers.pas b/source/apphelpers.pas index a66a7f80..b10a41f1 100644 --- a/source/apphelpers.pas +++ b/source/apphelpers.pas @@ -3524,7 +3524,7 @@ begin InitSetting(asHost, 'Host', 0, False, '127.0.0.1', True); InitSetting(asUser, 'User', 0, False, '', True); InitSetting(asPassword, 'Password', 0, False, '', True); - InitSetting(asCleartextPluginEnabled, 'CleartextPluginEnabled' 0, False, '', True); + InitSetting(asCleartextPluginEnabled, 'CleartextPluginEnabled', 0, False, '', True); InitSetting(asWindowsAuth, 'WindowsAuth', 0, False, '', True); InitSetting(asLoginPrompt, 'LoginPrompt', 0, False, '', True); InitSetting(asPort, 'Port', 0, False, '', True); diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 14e555af..e10e2d99 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -1832,7 +1832,7 @@ begin // Enable cleartext plugin if Parameters.CleartextPluginEnabled then - mysql_options(FHandle, MYSQL_ENABLE_CLEARTEXT_PLUGIN, 1); + mysql_options(FHandle, Integer(MYSQL_ENABLE_CLEARTEXT_PLUGIN), PAnsiChar('1')); Connected := mysql_real_connect( FHandle,