Vagabond
New Member
- Joined
- Oct 5, 2007
- Messages
- 242
- Reaction score
- 0
I see one potential problem with your use of LuaSQL: It lacks a PGSQL driver.
OTServ will have a PGSQL driver once revdbsys is merged, and since I can't see why TFS' creators would want to remove a driver that may potentially be used, I suggest you stop using luasql.
Since each form of SQL has essentially the same syntax, there is no reason why you can't simply create new Lua functions to connect to a database, execute queries, fetch results, etc, in OTServ source.
This'd also save the trouble of needing to download and link to LuaSQL to compile.
Or you could just remove the PGSQL driver, I suppose. I doubt PGSQL will get much use anyway.
OTServ will have a PGSQL driver once revdbsys is merged, and since I can't see why TFS' creators would want to remove a driver that may potentially be used, I suggest you stop using luasql.
Since each form of SQL has essentially the same syntax, there is no reason why you can't simply create new Lua functions to connect to a database, execute queries, fetch results, etc, in OTServ source.
This'd also save the trouble of needing to download and link to LuaSQL to compile.
Or you could just remove the PGSQL driver, I suppose. I doubt PGSQL will get much use anyway.