Server Talk > Scripting Releases
libdb (SQLite / MySQL / MariaDB / PostgreSQL / ODBC library)
SyavX:
I don't know... Try to comment out:
--- Code: --- //if Not FileExists(db_path) then
--- End code ---
so the database file will be overwritten on every call of create_db1().
I've attached a test.db (result of create_db2()), so you could test it with /query1 & /query2 commands.
Mighty:
Result:
--- Code: ---(10:23:32) /recompile CWSystem2 (83.9.97.128)
(10:23:32) [*] Compiling CWSystem2 -> libdb_linux.pas...
(10:23:32) [*] Compilation Complete.
(10:23:37) /create1 (83.9.97.128)
(10:23:37) File "test.db" created...
(10:23:37) Failed to open database
--- End code ---
Could you list all stuff that mightbe needed to run this? Just to make sure I have everything
SyavX:
Windows:
* nothing
Linux:
* libiodbc
P.S. Have you tried to open/query database attached to my previous post?
Mighty:
When i try to install libiodbc it says that the package is not found, but I have installed libiodbc2.
I tried:
--- Code: ---(12:16:29) /query1 (83.9.97.128)
(12:16:29) Can not open database "test.db"!
--- End code ---
SyavX:
Try to use DB_Error() to get an error information:
--- Code: ---...
else
begin
WriteLn('Failed to open database');
WriteLn(DB_Error());
end;
...
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version