Closed Gagogaa closed 1 year ago
Please use https://synopse.info/forum/ for such questions.
Try not to use the connection directly, but rather the high-level methods like ConnectionProperties.Execute()
.
Also can you show the exact stack trace of the issue?
I just tried replacing the line Connection := ConnectionProperties.NewConnection;
with ConnectionProperties.Execute('CREATE TABLE "Users" ("ID" INTEGER, "NAME" TEXT, PRIMARY KEY("ID"));', []);
and unfortunately it produces the same error.
I will re-post this question on the form for further comments.
Thank you for your time
There seems to be a regression with TSynLog.Add.
Should be fixed now.
Please try again.
I have updated to the latest commit and it works!
Thank you for the quick responses and a fix
Hello mORMot Team,
When connecting to a JET database I get a memory access violation.
I'm using RAD Studio 11 on Windows 11 with mORMot commit
eb4123ac07e8975cfdb425f5f06662ce389fefcf
.Minimal steps to reproduce:
Create a new Console application (Windows 32-bit)
File -> New -> Console Application - Delphi
.Save the project and replace the contents of
Project1.dpr
with this:{$APPTYPE CONSOLE}
{$R *.res}
uses System.SysUtils, mormot.db.sql, mormot.db.sql.oledb;
var ConnectionProperties : TSqlDbOleDBJetConnectionProperties; Connection : TSqlDBConnection; begin try ConnectionProperties := TSqlDBOleDBJetConnectionProperties.Create('Database1.mdb', '','',''); Connection := ConnectionProperties.NewConnection; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; end.