https://bugs.documentfoundation.org/show_bug.cgi?id=137566
--- Comment #5 from Julien Nabet <[email protected]> --- Here's a code pointer for those interested: #0 dbaui::DirectSQLDialog::implExecuteStatement(rtl::OUString const&) (this=0x9ed00d0, _rStatement="CREATE TABLE \"tla_Kontaktarten\" (\n\t \"Maske\" INTEGER PRIMARY KEY,\n\t \"Typ\"\t VARCHAR(30) NOT NULL UNIQUE\n);\nINSERT INTO \"tla_Kontaktarten\" VALUES (1,'Testadresse');") at dbaccess/source/ui/dlg/directsql.cxx:202 #1 0x00007f3d2faf844d in dbaui::DirectSQLDialog::executeCurrent() (this=0x9ed00d0) at dbaccess/source/ui/dlg/directsql.cxx:366 #2 0x00007f3d2faf8929 in dbaui::DirectSQLDialog::OnExecute(weld::Button&) (this=0x9ed00d0) at dbaccess/source/ui/dlg/directsql.cxx:418 first I thought about spliting the string on each ";" and call implExecuteStatement for each request but since a ";" may also appear in a string, I suppose we need a full SQL parser. Even if there's one in LO (I guess https://opengrok.libreoffice.org/search?project=core&full=OSQLParser&defs=&refs=&path=&hist=&type=&xrd=&nn=1&si=full&si=full&n=25 ?), I don't know at all how to use it. -- You are receiving this mail because: You are the assignee for the bug.
