Execute not work in 5.7 - With MyDac 3 it work - why?
Posted: Wed 04 Mar 2009 12:58
Hello,
sorry my english is nocht very well.
I have a problem and hope, you can help me. I used for a long time MySQL 3.1. Yesterdam my server crashed and i install MySQL 5.
I use C++ Builder 6 and MyDac in Version 3. But with the MyDac Version 3 it seems, that i cannot connect to MySQL 5. I looked for a new MyDac Version and find the Version 5.7.
I remove the old MyDac 3 Version and installed the MyDac 5.7. I open my project and start the programm. Know i have the problem, that it seems that my SQL-Query not work.
With MyDac 3 i do so
I get no errormessage. Execute is done but i have no data in my Table. With MyDac 3 it work. Why not with 5.7?
Is in MyDac 5.7 something other to do my Query?
Thanks vor help.
sorry my english is nocht very well.
I use C++ Builder 6 and MyDac in Version 3. But with the MyDac Version 3 it seems, that i cannot connect to MySQL 5. I looked for a new MyDac Version and find the Version 5.7.
I remove the old MyDac 3 Version and installed the MyDac 5.7. I open my project and start the programm. Know i have the problem, that it seems that my SQL-Query not work.
With MyDac 3 i do so
Code: Select all
sql_insert = "insert into kundendaten";
sql_insert += " (anrede, firma, vn, nn, stra, plz, ort, land, bemerkung, gesamtkosten, versandkosten, zahlart, blz, ktonummer, bank, inhaber, artikel_komplett, bestellart, bestelldatum, versanddatum, erfasser)";
sql_insert += " values ('"+neue_bestellung->anrede->Text+"', '"+neue_bestellung->firma->Text+"', '"+neue_bestellung->vn->Text+"', '"+neue_bestellung->nn->Text+"', '"+neue_bestellung->stra->Text+"', '"+neue_bestellung->plz->Text+"', '"+neue_bestellung->ort->Text+"', '"+neue_bestellung->land->Text+"', '"+neue_bestellung->bemerkung->Lines->Text+"',";
sql_insert += " '"+artikeldaten_back[0]+"', '"+artikeldaten_back[2]+"', '"+zahlart+"', '"+neue_bestellung->Eblz->Text+"', '"+neue_bestellung->Ektonummer->Text+"', '"+neue_bestellung->Ebank->Text+"', '"+neue_bestellung->Einhaber->Text+"', '"+artikeldaten_back[1]+"', '"+bestellart+"', '"+bestelldatum+"', '', '"+computername+"')";
DataModule1->sql_kundendaten->SQL->Clear();
DataModule1->sql_kundendaten->SQL->Add(sql_insert);
DataModule1->sql_kundendaten->Execute();
Is in MyDac 5.7 something other to do my Query?
Thanks vor help.