mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Remove the comparison metamethods from the SQLite module.
This commit is contained in:
parent
3107513350
commit
b9bc8ce2ad
@ -518,7 +518,6 @@ void Register_Column(Table & sqlns)
|
||||
.Ctor()
|
||||
.Ctor< const Column & >()
|
||||
// Meta-methods
|
||||
.Func(_SC("_cmp"), &Column::Cmp)
|
||||
.SquirrelFunc(_SC("_typename"), &Column::Typename)
|
||||
.Func(_SC("_tostring"), &Column::ToString)
|
||||
// Properties
|
||||
|
@ -199,25 +199,6 @@ public:
|
||||
return m_Index >= 0;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to compare two instances of this type.
|
||||
*/
|
||||
Int32 Cmp(const Column & o) const
|
||||
{
|
||||
if (m_Index == o.m_Index)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_Index > o.m_Index)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to convert an instance of this type to a string.
|
||||
*/
|
||||
|
@ -516,7 +516,6 @@ void Register_Connection(Table & sqlns)
|
||||
.Ctor< CCStr, Int32 >()
|
||||
.Ctor< CCStr, Int32, CCStr >()
|
||||
// Meta-methods
|
||||
.Func(_SC("_cmp"), &Connection::Cmp)
|
||||
.SquirrelFunc(_SC("_typename"), &Connection::Typename)
|
||||
.Func(_SC("_tostring"), &Connection::ToString)
|
||||
// Properties
|
||||
|
@ -171,25 +171,6 @@ public:
|
||||
return m_Handle ? m_Handle->mPtr : nullptr;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to compare two instances of this type.
|
||||
*/
|
||||
Int32 Cmp(const Connection & o) const
|
||||
{
|
||||
if (m_Handle.Get() == o.m_Handle.Get())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_Handle.Get() > o.m_Handle.Get())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to convert an instance of this type to a string.
|
||||
*/
|
||||
|
@ -789,7 +789,6 @@ void Register_Parameter(Table & sqlns)
|
||||
.Ctor()
|
||||
.Ctor< const Parameter & >()
|
||||
// Meta-methods
|
||||
.Func(_SC("_cmp"), &Parameter::Cmp)
|
||||
.SquirrelFunc(_SC("_typename"), &Parameter::Typename)
|
||||
.Func(_SC("_tostring"), &Parameter::ToString)
|
||||
// Properties
|
||||
|
@ -193,25 +193,6 @@ public:
|
||||
return m_Index >= 0;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to compare two instances of this type.
|
||||
*/
|
||||
Int32 Cmp(const Parameter & o) const
|
||||
{
|
||||
if (m_Index == o.m_Index)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_Index > o.m_Index)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to convert an instance of this type to a string.
|
||||
*/
|
||||
|
@ -432,7 +432,6 @@ void Register_Statement(Table & sqlns)
|
||||
.Ctor< const Statement & >()
|
||||
.Ctor< const Connection &, CCStr >()
|
||||
// Meta-methods
|
||||
.Func(_SC("_cmp"), &Statement::Cmp)
|
||||
.SquirrelFunc(_SC("_typename"), &Statement::Typename)
|
||||
.Func(_SC("_tostring"), &Statement::ToString)
|
||||
// Properties
|
||||
|
@ -170,25 +170,6 @@ public:
|
||||
return m_Handle ? m_Handle->mPtr : nullptr;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to compare two instances of this type.
|
||||
*/
|
||||
Int32 Cmp(const Statement & o) const
|
||||
{
|
||||
if (m_Handle.Get() == o.m_Handle.Get())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_Handle.Get() > o.m_Handle.Get())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Used by the script engine to convert an instance of this type to a string.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user