mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Fixed various issues with Sqrat thinking the type wasn't registered if an error is thrown in the constructor.
Fixed asserts in connection and statement handles to check the correct property. Switched various methods to return objects instead of direct types. Various other fixes and improvements on the SQLite module.
This commit is contained in:
@ -239,7 +239,7 @@ void RegisterAPI(HSQUIRRELVM vm)
|
||||
/* Properties */
|
||||
.Prop(_SC("Valid"), &Statement::IsValid)
|
||||
.Prop(_SC("Refs"), &Statement::GetRefCount)
|
||||
.Prop(_SC("Connection"), &Statement::GetConnection)
|
||||
.Prop(_SC("Conn"), &Statement::GetConnection)
|
||||
.Prop(_SC("Prepared"), &Statement::IsValid)
|
||||
.Prop(_SC("Status"), &Statement::GetStatus)
|
||||
.Prop(_SC("ErrCode"), &Statement::GetErrorCode)
|
||||
@ -306,8 +306,8 @@ void RegisterAPI(HSQUIRRELVM vm)
|
||||
.Prop(_SC("Valid"), &Column::IsValid)
|
||||
.Prop(_SC("Refs"), &Column::GetRefCount)
|
||||
.Prop(_SC("Index"), &Column::GetIndex)
|
||||
.Prop(_SC("Statement"), &Column::GetNumber)
|
||||
.Prop(_SC("Connection"), &Column::GetConnection)
|
||||
.Prop(_SC("Stmt"), &Column::GetNumber)
|
||||
.Prop(_SC("Conn"), &Column::GetConnection)
|
||||
.Prop(_SC("Number"), &Column::GetNumber)
|
||||
.Prop(_SC("Integer"), &Column::GetInteger)
|
||||
.Prop(_SC("Float"), &Column::GetFloat)
|
||||
|
Reference in New Issue
Block a user