Error
---------------------------
› 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' ) VALUES (' ', ' \ ')' at line 1
---------------------------
ОК
Запрос в консоли mysql выполняется
INSERT INTO test.tbd_a_gorod(КодГорода, Город) VALUES ('апвапываф', 'лваеноыываЦв');
Hiasm 4.05 build 186; FPC; MySQL MOD Unicode
Схема элементарная
Add(MainForm,2953706,35,77)
{
Height=152
link(onCreate,2986171:doOpen,[(163,97)(163,202)])
}
Add(Button,10320345,273,343)
{
Left=245
Top=15
Width=75
Caption="Добавить"
link(onClick,15116078:doQuery,[(317,349)(317,307)(247,307)(247,265)])
}
Add(Edit,8517992,308,196)
{
Left=15
Top=15
Width=105
Text="ти"
}
Add(Edit,8360024,371,196)
{
Left=135
Top=15
Width=75
Text="тим"
}
Add(dbMySQL,2986171,259,196)
{
Login="root"
Password="root"
DBName="test"
Charset=5
}
Add(dbMySQL_Query,15116078,259,259)
{
link(onResult,15839493:doString,[])
link(dbHandle,2986171:dbHandle,[])
}
Add(Edit,14126593,364,259)
{
Left=10
Top=60
Width=355
Text="INSERT INTO naselenie.tbd_a_gorod VALUES('ти','ти',NULL);"
}
Add(FormatStr,15839493,315,259)
{
Mask="INSERT INTO naselenie.tbd_a_gorod VALUES('%1','%2',NULL);"
link(onFString,14126593:doText,[])
link(Str1,8517992:Text,[(321,243)(314,243)])
link(Str2,12187068:Var1,[(328,243)])
}
Add(GetDataEx,12187068,357,238)
{
Angle=1
link(Data,8360024:Text,[(377,243)])
}