#include <database.mod/mariadb.mod/.bmx/mariadb.bmx.debug.win32.x86.h>
struct BBString_1{BBClass_String* clas;BBULONG hash;int length;BBChar buf[1];};
struct BBString_3{BBClass_String* clas;BBULONG hash;int length;BBChar buf[3];};
struct BBString_10{BBClass_String* clas;BBULONG hash;int length;BBChar buf[10];};
struct BBString_6{BBClass_String* clas;BBULONG hash;int length;BBChar buf[6];};
struct BBString_21{BBClass_String* clas;BBULONG hash;int length;BBChar buf[21];};
struct BBString_20{BBClass_String* clas;BBULONG hash;int length;BBChar buf[20];};
struct BBString_28{BBClass_String* clas;BBULONG hash;int length;BBChar buf[28];};
struct BBString_25{BBClass_String* clas;BBULONG hash;int length;BBChar buf[25];};
struct BBString_27{BBClass_String* clas;BBULONG hash;int length;BBChar buf[27];};
struct BBString_24{BBClass_String* clas;BBULONG hash;int length;BBChar buf[24];};
struct BBString_30{BBClass_String* clas;BBULONG hash;int length;BBChar buf[30];};
struct BBString_26{BBClass_String* clas;BBULONG hash;int length;BBChar buf[26];};
struct BBString_7{BBClass_String* clas;BBULONG hash;int length;BBChar buf[7];};
struct BBString_8{BBClass_String* clas;BBULONG hash;int length;BBChar buf[8];};
struct BBString_18{BBClass_String* clas;BBULONG hash;int length;BBChar buf[18];};
struct BBString_4{BBClass_String* clas;BBULONG hash;int length;BBChar buf[4];};
struct BBString_5{BBClass_String* clas;BBULONG hash;int length;BBChar buf[5];};
struct BBString_9{BBClass_String* clas;BBULONG hash;int length;BBChar buf[9];};
static struct BBString_1 _s30={
	&bbStringClass,
	0xe7661a0566dadf97,
	1,
	{39}
};
static struct BBString_1 _s4={
	&bbStringClass,
	0x8a44f19b176dda60,
	1,
	{40}
};
static struct BBString_3 _s27={
	&bbStringClass,
	0x3140a020f3cd1e86,
	3,
	{59,10,10}
};
static struct BBString_10 _s35={
	&bbStringClass,
	0x9487aefe547bfaad,
	10,
	{66,69,71,73,78,32,87,79,82,75}
};
static struct BBString_6 _s1={
	&bbStringClass,
	0x2af6a1053207f7d7,
	6,
	{67,79,77,77,73,84}
};
static struct BBString_21 _s0={
	&bbStringClass,
	0xcff2c11abc28e22,
	21,
	{67,111,110,110,101,99,116,105,111,110,32,104,97,115,32,99,108
	,111,115,101,100}
};
static struct BBString_20 _s43={
	&bbStringClass,
	0xfb279be21f496686,
	20,
	{69,114,114,111,114,32,98,105,110,100,105,110,103,32,114,101,115
	,117,108,116}
};
static struct BBString_20 _s41={
	&bbStringClass,
	0x81ab11e270ec60a2,
	20,
	{69,114,114,111,114,32,98,105,110,100,105,110,103,32,118,97,108
	,117,101,115}
};
static struct BBString_28 _s2={
	&bbStringClass,
	0x98ccb0d8ca98ec90,
	28,
	{69,114,114,111,114,32,99,111,109,109,105,116,116,105,110,103,32
	,116,114,97,110,115,97,99,116,105,111,110}
};
static struct BBString_28 _s28={
	&bbStringClass,
	0xb0fcc98c873d3baa,
	28,
	{69,114,114,111,114,32,99,111,110,110,101,99,116,105,110,103,32
	,116,111,32,100,97,116,97,98,97,115,101}
};
static struct BBString_21 _s37={
	&bbStringClass,
	0x819ae39f4248698b,
	21,
	{69,114,114,111,114,32,101,120,101,99,117,116,105,110,103,32,113
	,117,101,114,121}
};
static struct BBString_25 _s42={
	&bbStringClass,
	0x97c2d963e4b94776,
	25,
	{69,114,114,111,114,32,101,120,101,99,117,116,105,110,103,32,115
	,116,97,116,101,109,101,110,116}
};
static struct BBString_27 _s31={
	&bbStringClass,
	0x1f63a083f44d1857,
	27,
	{69,114,114,111,114,32,105,110,105,116,105,97,108,105,122,105,110
	,103,32,100,97,116,97,98,97,115,101}
};
static struct BBString_24 _s29={
	&bbStringClass,
	0x8d09367a77520b14,
	24,
	{69,114,114,111,114,32,111,112,101,110,105,110,103,32,100,97,116
	,97,98,97,115,101,32,39}
};
static struct BBString_25 _s39={
	&bbStringClass,
	0x48fa39593b31d4a4,
	25,
	{69,114,114,111,114,32,112,114,101,112,97,114,105,110,103,32,115
	,116,97,116,101,109,101,110,116}
};
static struct BBString_25 _s40={
	&bbStringClass,
	0x31541e24c25d9aef,
	25,
	{69,114,114,111,114,32,114,101,115,101,116,116,105,110,103,32,115
	,116,97,116,101,109,101,110,116}
};
static struct BBString_30 _s34={
	&bbStringClass,
	0xa04557736a983af5,
	30,
	{69,114,114,111,114,32,114,111,108,108,105,110,103,32,98,97,99
	,107,32,116,114,97,110,115,97,99,116,105,111,110}
};
static struct BBString_26 _s36={
	&bbStringClass,
	0x2182482802d813a0,
	26,
	{69,114,114,111,114,32,115,116,97,114,116,105,110,103,32,116,114
	,97,110,115,97,99,116,105,111,110}
};
static struct BBString_20 _s44={
	&bbStringClass,
	0xf9fdffbeb9b2ee75,
	20,
	{69,114,114,111,114,32,115,116,111,114,105,110,103,32,114,101,115
	,117,108,116}
};
static struct BBString_24 _s38={
	&bbStringClass,
	0x84aabed3da3ff401,
	24,
	{69,114,114,111,114,32,115,116,111,114,105,110,103,32,114,101,115
	,117,108,116,32,115,101,116}
};
static struct BBString_7 _s45={
	&bbStringClass,
	0x8b926737d67c8748,
	7,
	{77,65,82,73,65,68,66}
};
static struct BBString_8 _s33={
	&bbStringClass,
	0xa61426338e4547af,
	8,
	{82,79,76,76,66,65,67,75}
};
static struct BBString_18 _s3={
	&bbStringClass,
	0x116a134af5e46bbe,
	18,
	{83,72,79,87,32,67,79,76,85,77,78,83,32,70,82,79,77
	,32}
};
static struct BBString_18 _s26={
	&bbStringClass,
	0x3cc82f707295545d,
	18,
	{83,72,79,87,32,67,82,69,65,84,69,32,84,65,66,76,69
	,32}
};
static struct BBString_3 _s25={
	&bbStringClass,
	0xd402b694b915d11e,
	3,
	{89,69,83}
};
static struct BBString_6 _s12={
	&bbStringClass,
	0x21cd128dca5051d7,
	6,
	{98,105,103,105,110,116}
};
static struct BBString_4 _s22={
	&bbStringClass,
	0xdec8f18e32f7e474,
	4,
	{98,108,111,98}
};
static struct BBString_4 _s6={
	&bbStringClass,
	0xfdc8889f7ba0e8fe,
	4,
	{98,111,111,108}
};
static struct BBString_7 _s5={
	&bbStringClass,
	0x4f9b275585d15f60,
	7,
	{98,111,111,108,101,97,110}
};
static struct BBString_4 _s17={
	&bbStringClass,
	0xb8f370f4cb5ba1e9,
	4,
	{100,97,116,101}
};
static struct BBString_8 _s19={
	&bbStringClass,
	0xfee099d8b564a225,
	8,
	{100,97,116,101,116,105,109,101}
};
static struct BBString_7 _s15={
	&bbStringClass,
	0x5d41b2b5bc1e8217,
	7,
	{100,101,99,105,109,97,108}
};
static struct BBString_6 _s14={
	&bbStringClass,
	0x71b58eac94f8019d,
	6,
	{100,111,117,98,108,101}
};
static struct BBString_5 _s16={
	&bbStringClass,
	0x6be68d0b4210ad1b,
	5,
	{102,108,111,97,116}
};
static struct BBString_3 _s10={
	&bbStringClass,
	0x97266e93bbc64ea,
	3,
	{105,110,116}
};
static struct BBString_7 _s11={
	&bbStringClass,
	0x2468c759d4a47b83,
	7,
	{105,110,116,101,103,101,114}
};
static struct BBString_8 _s24={
	&bbStringClass,
	0xb38bddb330eaa20b,
	8,
	{108,111,110,103,98,108,111,98}
};
static struct BBString_10 _s23={
	&bbStringClass,
	0x9f6d7dfadea4a0c3,
	10,
	{109,101,100,105,117,109,98,108,111,98}
};
static struct BBString_9 _s9={
	&bbStringClass,
	0xbffff0db006e612a,
	9,
	{109,101,100,105,117,109,105,110,116}
};
static struct BBString_4 _s13={
	&bbStringClass,
	0xd498e56c2ba94015,
	4,
	{114,101,97,108}
};
static struct BBString_8 _s8={
	&bbStringClass,
	0x4997ce8bec4ed83a,
	8,
	{115,109,97,108,108,105,110,116}
};
static struct BBString_4 _s20={
	&bbStringClass,
	0xecb7e1152c9d81aa,
	4,
	{116,105,109,101}
};
static struct BBString_9 _s18={
	&bbStringClass,
	0x324de41e8e81d549,
	9,
	{116,105,109,101,115,116,97,109,112}
};
static struct BBString_8 _s21={
	&bbStringClass,
	0x29ab605bcd990b56,
	8,
	{116,105,110,121,98,108,111,98}
};
static struct BBString_7 _s7={
	&bbStringClass,
	0xe7662fd902eb7dc7,
	7,
	{116,105,110,121,105,110,116}
};
static struct BBString_4 _s32={
	&bbStringClass,
	0x8995807a44783187,
	4,
	{117,116,102,56}
};
struct BBDebugScope_1{int kind; const char *name; BBDebugDecl decls[2]; };
struct BBDebugScope_17{int kind; const char *name; BBDebugDecl decls[18]; };
struct BBDebugScope_2{int kind; const char *name; BBDebugDecl decls[3]; };
struct BBDebugScope_24{int kind; const char *name; BBDebugDecl decls[25]; };
struct BBDebugScope_3{int kind; const char *name; BBDebugDecl decls[4]; };
struct BBDebugScope_4{int kind; const char *name; BBDebugDecl decls[5]; };
struct BBDebugScope_5{int kind; const char *name; BBDebugDecl decls[6]; };
struct BBDebugScope_6{int kind; const char *name; BBDebugDecl decls[7]; };
struct BBDebugScope_7{int kind; const char *name; BBDebugDecl decls[8]; };
struct BBDebugScope_8{int kind; const char *name; BBDebugDecl decls[9]; };
void _database_mariadb_TMariaDBDatabaseLoader_New(struct database_mariadb_TMariaDBDatabaseLoader_obj* o) {
	_database_core_TDatabaseLoader_New((struct database_core_TDatabaseLoader_obj*)o);
	o->clas = &database_mariadb_TMariaDBDatabaseLoader;
	struct BBDebugScope __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"New",
		{
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 936, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_core_TDatabaseLoader_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdatabaseloader__type =((BBString*)&_s45);
	bbOnDebugLeaveScope();
}
struct database_core_TDBConnection_obj* _database_mariadb_TMariaDBDatabaseLoader_LoadDatabase_SSiSSSS(struct database_mariadb_TMariaDBDatabaseLoader_obj* o,BBSTRING bbt_dbname,BBSTRING bbt_host,BBINT bbt_port,BBSTRING bbt_user,BBSTRING bbt_password,BBSTRING bbt_server,BBSTRING bbt_options){
	((struct database_mariadb_TMariaDBDatabaseLoader_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_8 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"LoadDatabase",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMariaDBDatabaseLoader",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"dbname",
				"$",
				.var_address=&bbt_dbname
			},
			{
				BBDEBUGDECL_LOCAL,
				"host",
				"$",
				.var_address=&bbt_host
			},
			{
				BBDEBUGDECL_LOCAL,
				"port",
				"i",
				.var_address=&bbt_port
			},
			{
				BBDEBUGDECL_LOCAL,
				"user",
				"$",
				.var_address=&bbt_user
			},
			{
				BBDEBUGDECL_LOCAL,
				"password",
				"$",
				.var_address=&bbt_password
			},
			{
				BBDEBUGDECL_LOCAL,
				"server",
				"$",
				.var_address=&bbt_server
			},
			{
				BBDEBUGDECL_LOCAL,
				"options",
				"$",
				.var_address=&bbt_options
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 943, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return (struct database_core_TDBConnection_obj*)database_mariadb_TDBMariaDB_Create_TTDBConnection_SSiSSSS(bbt_dbname,bbt_host,bbt_port,bbt_user,bbt_password,bbt_server,bbt_options);
}
struct BBDebugScope_2 database_mariadb_TMariaDBDatabaseLoader_scope ={
	BBDEBUGSCOPE_USERTYPE,
	"TMariaDBDatabaseLoader",
	{
		{
			BBDEBUGDECL_TYPEMETHOD,
			"New",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMariaDBDatabaseLoader_New
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"LoadDatabase",
			"($,$,i,$,$,$,$):TDBConnection",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMariaDBDatabaseLoader_LoadDatabase_SSiSSSS
		},
		{
			BBDEBUGDECL_END
		}
	}
};
struct BBClass_database_mariadb_TMariaDBDatabaseLoader database_mariadb_TMariaDBDatabaseLoader={
	&database_core_TDatabaseLoader,
	bbObjectFree,
	(BBDebugScope*)&database_mariadb_TMariaDBDatabaseLoader_scope,
	sizeof(struct database_mariadb_TMariaDBDatabaseLoader_obj),
	(void (*)(BBOBJECT))_database_mariadb_TMariaDBDatabaseLoader_New,
	bbObjectDtor,
	bbObjectToString,
	bbObjectCompare,
	bbObjectSendMessage,
	0,
	0,
	0
	,0
	,sizeof(void*)
	,_database_mariadb_TMariaDBDatabaseLoader_LoadDatabase_SSiSSSS
};

void _database_mariadb_TDBMariaDB_New(struct database_mariadb_TDBMariaDB_obj* o) {
	_database_core_TDBConnection_New((struct database_core_TDBConnection_obj*)o);
	o->clas = &database_mariadb_TDBMariaDB;
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tdbmariadb_clientversion = 0;
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tdbmariadb_serverversion = 0;
}
void _database_mariadb_TDBMariaDB_Delete(struct database_mariadb_TDBMariaDB_obj* o) {
	_database_core_TDBConnection_Delete((struct database_core_TDBConnection_obj*)o);
}
struct database_core_TDBConnection_obj* database_mariadb_TDBMariaDB_Create_TTDBConnection_SSiSSSS(BBSTRING bbt_dbname,BBSTRING bbt_host,BBINT bbt_port,BBSTRING bbt_user,BBSTRING bbt_password,BBSTRING bbt_server,BBSTRING bbt_options){
	struct database_mariadb_TDBMariaDB_obj* bbt_this=(struct database_mariadb_TDBMariaDB_obj*)((struct database_mariadb_TDBMariaDB_obj*)&bbNullObject);
	struct BBDebugScope_8 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Create",
		{
			{
				BBDEBUGDECL_LOCAL,
				"dbname",
				"$",
				.var_address=&bbt_dbname
			},
			{
				BBDEBUGDECL_LOCAL,
				"host",
				"$",
				.var_address=&bbt_host
			},
			{
				BBDEBUGDECL_LOCAL,
				"port",
				"i",
				.var_address=&bbt_port
			},
			{
				BBDEBUGDECL_LOCAL,
				"user",
				"$",
				.var_address=&bbt_user
			},
			{
				BBDEBUGDECL_LOCAL,
				"password",
				"$",
				.var_address=&bbt_password
			},
			{
				BBDEBUGDECL_LOCAL,
				"server",
				"$",
				.var_address=&bbt_server
			},
			{
				BBDEBUGDECL_LOCAL,
				"options",
				"$",
				.var_address=&bbt_options
			},
			{
				BBDEBUGDECL_LOCAL,
				"this",
				":TDBMariaDB",
				.var_address=&bbt_this
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 69, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_this=(struct database_mariadb_TDBMariaDB_obj*)(struct database_mariadb_TDBMariaDB_obj*)bbObjectNew((BBClass *)&database_mariadb_TDBMariaDB);
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 71, 0};
	bbOnDebugEnterStm(&__stmt_1);
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)bbt_this))->clas->m_Init_SSiSSSS((struct database_core_TDBConnection_obj*)bbt_this,bbt_dbname,bbt_host,bbt_port,bbt_user,bbt_password,bbt_server,bbt_options);
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 73, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)bbt_this))->_database_mariadb_tdbmariadb_clientversion =mysql_get_client_version();
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 75, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)bbt_this))->_database_core_tdbconnection__dbname != &bbEmptyString){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 76, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)bbt_this))->clas->m_open_SS((struct database_mariadb_TDBMariaDB_obj*)bbt_this,bbt_user,bbt_password);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 79, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbOnDebugLeaveScope();
	return (struct database_core_TDBConnection_obj*)((struct database_core_TDBConnection_obj*)bbObjectDowncast((BBOBJECT)bbt_this,(BBClass*)&database_core_TDBConnection));
}
void _database_mariadb_TDBMariaDB_close(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"close",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 84, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 86, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_core_TDBConnection_obj*)o)->clas->m_free((struct database_core_TDBConnection_obj*)o);
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 88, 0};
		bbOnDebugEnterStm(&__stmt_1);
		mysql_close(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle );
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 89, 0};
		bbOnDebugEnterStm(&__stmt_2);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle =0;
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 90, 0};
		bbOnDebugEnterStm(&__stmt_3);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen =0;
		bbOnDebugLeaveScope();
	}
	bbOnDebugLeaveScope();
}
BBINT _database_mariadb_TDBMariaDB_isOpen(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"isOpen",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 95, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 97, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(mysql_ping(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle )!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 98, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
			((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s0),(&bbEmptyString),2,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 99, 0};
			bbOnDebugEnterStm(&__stmt_1);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen =0;
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 103, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbOnDebugLeaveScope();
	return ((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen ;
}
BBINT _database_mariadb_TDBMariaDB_commit(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"commit",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 107, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 108, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 111, 0};
	bbOnDebugEnterStm(&__stmt_1);
	BBBYTE* bbt_ = (BBBYTE*)bbStringToCString((BBString*)&_s1);
	if(mysql_query(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_)!=0){
		bbMemFree(bbt_);
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 112, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s2),(&bbEmptyString),1,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 113, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	bbMemFree(bbt_);
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 116, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbOnDebugLeaveScope();
	return 1;
}
BBARRAY _database_mariadb_TDBMariaDB_getTables(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	BBARRAY bbt_list=(&bbEmptyArray);
	struct brl_linkedlist_TList_obj* bbt_tableList=(struct brl_linkedlist_TList_obj*)((struct brl_linkedlist_TList_obj*)&bbNullObject);
	BBBYTE* bbt_tablesHandle=0;
	struct BBDebugScope_4 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"getTables",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"list",
				"[]$",
				.var_address=&bbt_list
			},
			{
				BBDEBUGDECL_LOCAL,
				"tableList",
				":TList",
				.var_address=&bbt_tableList
			},
			{
				BBDEBUGDECL_LOCAL,
				"tablesHandle",
				"*b",
				.var_address=&bbt_tablesHandle
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 120, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_list=(&bbEmptyArray);
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 122, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 123, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return bbt_list;
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 126, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_tableList=(struct brl_linkedlist_TList_obj*)(struct brl_linkedlist_TList_obj*)bbObjectNew((BBClass *)&brl_linkedlist_TList);
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 127, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_tablesHandle=mysql_list_tables(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,0);
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 129, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if(bbt_tablesHandle){
		BBBYTE* bbt_row=0;
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"row",
					"*b",
					.var_address=&bbt_row
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 130, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_row=mysql_fetch_row(bbt_tablesHandle);
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 132, 0};
		bbOnDebugEnterStm(&__stmt_1);
		while(bbt_row){
			BBSTRING bbt_s=(&bbEmptyString);
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"s",
						"$",
						.var_address=&bbt_s
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 133, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_s=bbStringFromUTF8String(bmx_mysql_rowField_chars(bbt_row,0));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 134, 0};
			bbOnDebugEnterStm(&__stmt_1);
			((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_tableList))->clas->m_AddLast_TObject((struct brl_linkedlist_TList_obj*)bbt_tableList,(BBOBJECT)bbt_s);
			struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 136, 0};
			bbOnDebugEnterStm(&__stmt_2);
			bbt_row=mysql_fetch_row(bbt_tablesHandle);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 139, 0};
		bbOnDebugEnterStm(&__stmt_2);
		mysql_free_result(bbt_tablesHandle);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 142, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_tableList))->clas->m_Count((struct brl_linkedlist_TList_obj*)bbt_tableList)>0){
		BBINT bbt_i=0;
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"i",
					"i",
					.var_address=&bbt_i
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 143, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_list=bbArrayNew1D("$", ((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_tableList))->clas->m_Count((struct brl_linkedlist_TList_obj*)bbt_tableList));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 144, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbt_i=0;
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 145, 0};
		bbOnDebugEnterStm(&__stmt_2);
		struct brl_linkedlist_TListEnum_obj* bbt_=(struct brl_linkedlist_TListEnum_obj*)((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_tableList))->clas->m_ObjectEnumerator((struct brl_linkedlist_TList_obj*)bbt_tableList);
		while(((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_HasNext((struct brl_linkedlist_TListEnum_obj*)bbt_)!=0){
			BBSTRING bbt_s2=(&bbEmptyString);
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"s",
						"$",
						.var_address=&bbt_s2
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			BBOBJECT bbt_2=(BBOBJECT)((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_NextObject((struct brl_linkedlist_TListEnum_obj*)bbt_);
			if(bbObjectIsString((BBOBJECT)bbt_2)==0){
				bbOnDebugLeaveScope();
				continue;
			}
			bbt_s2=((BBString *)bbObjectStringcast((BBOBJECT)bbt_2));
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 146, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((BBSTRING*)BBARRAYDATAINDEX((bbt_list),(bbt_list)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=bbt_s2;
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 147, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbt_i+=1;
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 151, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbOnDebugLeaveScope();
	return bbt_list;
}
struct database_core_TDBTable_obj* _database_mariadb_TDBMariaDB_getTableInfo_Si(struct database_mariadb_TDBMariaDB_obj* o,BBSTRING bbt_tableName,BBINT bbt_withDDL){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct database_core_TDatabaseQuery_obj* bbt_query=(struct database_core_TDatabaseQuery_obj*)((struct database_core_TDatabaseQuery_obj*)&bbNullObject);
	struct database_core_TDBTable_obj* bbt_table=(struct database_core_TDBTable_obj*)((struct database_core_TDBTable_obj*)&bbNullObject);
	BBSTRING bbt_sql=(&bbEmptyString);
	struct BBDebugScope_6 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"getTableInfo",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"tableName",
				"$",
				.var_address=&bbt_tableName
			},
			{
				BBDEBUGDECL_LOCAL,
				"withDDL",
				"i",
				.var_address=&bbt_withDDL
			},
			{
				BBDEBUGDECL_LOCAL,
				"query",
				":TDatabaseQuery",
				.var_address=&bbt_query
			},
			{
				BBDEBUGDECL_LOCAL,
				"table",
				":TDBTable",
				.var_address=&bbt_table
			},
			{
				BBDEBUGDECL_LOCAL,
				"sql",
				"$",
				.var_address=&bbt_sql
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 155, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 156, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return (struct database_core_TDBTable_obj*)&bbNullObject;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 159, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_query=(struct database_core_TDatabaseQuery_obj*)database_core_TDatabaseQuery_Create_TTDatabaseQuery_TTDBConnection((struct database_core_TDBConnection_obj*)((struct database_core_TDBConnection_obj*)bbObjectDowncast((BBOBJECT)o,(BBClass*)&database_core_TDBConnection)));
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 161, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_table=(struct database_core_TDBTable_obj*)((struct database_core_TDBTable_obj*)&bbNullObject);
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 163, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_sql=bbStringConcat(((BBString*)&_s3),bbt_tableName);
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 165, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if(((struct database_core_TDatabaseQuery_obj*)bbNullObjectTest((BBObject*)bbt_query))->clas->m_execute_S((struct database_core_TDatabaseQuery_obj*)bbt_query,bbt_sql)!=0){
		struct brl_linkedlist_TList_obj* bbt_cols=(struct brl_linkedlist_TList_obj*)((struct brl_linkedlist_TList_obj*)&bbNullObject);
		BBINT bbt_i=0;
		struct BBDebugScope_2 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"cols",
					":TList",
					.var_address=&bbt_cols
				},
				{
					BBDEBUGDECL_LOCAL,
					"i",
					"i",
					.var_address=&bbt_i
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 166, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_table=(struct database_core_TDBTable_obj*)(struct database_core_TDBTable_obj*)bbObjectNew((BBClass *)&database_core_TDBTable);
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 167, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_core_TDBTable_obj*)bbNullObjectTest((BBObject*)bbt_table))->_database_core_tdbtable_name =bbt_tableName;
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 169, 0};
		bbOnDebugEnterStm(&__stmt_2);
		bbt_cols=(struct brl_linkedlist_TList_obj*)(struct brl_linkedlist_TList_obj*)bbObjectNew((BBClass *)&brl_linkedlist_TList);
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 171, 0};
		bbOnDebugEnterStm(&__stmt_3);
		struct database_core_TRowEnumerator_obj* bbt_=(struct database_core_TRowEnumerator_obj*)((struct database_core_TDatabaseQuery_obj*)bbNullObjectTest((BBObject*)bbt_query))->clas->m_ObjectEnumerator((struct database_core_TDatabaseQuery_obj*)bbt_query);
		while(((struct database_core_TRowEnumerator_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_HasNext((struct database_core_TRowEnumerator_obj*)bbt_)!=0){
			struct database_core_TQueryRecord_obj* bbt_rec=(struct database_core_TQueryRecord_obj*)((struct database_core_TQueryRecord_obj*)&bbNullObject);
			BBSTRING bbt_name=(&bbEmptyString);
			BBSTRING bbt__type=(&bbEmptyString);
			BBINT bbt_dbType=0;
			BBINT bbt_nullable=0;
			struct database_core_dbtypes_TDBType_obj* bbt_defaultValue=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)&bbNullObject);
			struct BBDebugScope_6 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"rec",
						":TQueryRecord",
						.var_address=&bbt_rec
					},
					{
						BBDEBUGDECL_LOCAL,
						"name",
						"$",
						.var_address=&bbt_name
					},
					{
						BBDEBUGDECL_LOCAL,
						"_type",
						"$",
						.var_address=&bbt__type
					},
					{
						BBDEBUGDECL_LOCAL,
						"dbType",
						"i",
						.var_address=&bbt_dbType
					},
					{
						BBDEBUGDECL_LOCAL,
						"nullable",
						"i",
						.var_address=&bbt_nullable
					},
					{
						BBDEBUGDECL_LOCAL,
						"defaultValue",
						":TDBType",
						.var_address=&bbt_defaultValue
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			bbt_rec=(struct database_core_TQueryRecord_obj*)((struct database_core_TQueryRecord_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_TRowEnumerator_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_NextObject((struct database_core_TRowEnumerator_obj*)bbt_),(BBClass*)&database_core_TQueryRecord));
			if(((BBOBJECT)bbt_rec)==&bbNullObject){
				bbOnDebugLeaveScope();
				continue;
			}
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 173, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_name=((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)bbt_rec))->clas->m_getString_i((struct database_core_TQueryRecord_obj*)bbt_rec,0);
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 174, 0};
			bbOnDebugEnterStm(&__stmt_1);
			BBARRAY bbt_2=bbStringSplit((BBSTRING)((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)bbt_rec))->clas->m_getString_i((struct database_core_TQueryRecord_obj*)bbt_rec,1),((BBString*)&_s4));
			bbt__type=((BBSTRING*)BBARRAYDATAINDEX((bbt_2),(bbt_2)->dims,0U))[0U];
			struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 175, 0};
			bbOnDebugEnterStm(&__stmt_2);
			bbt_dbType=0;
			struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 176, 0};
			bbOnDebugEnterStm(&__stmt_3);
			BBSTRING bbt_3=bbt__type;
			struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 177, 0};
			bbOnDebugEnterStm(&__stmt_4);
			if((((((bbStringEquals(bbt_3, ((BBString*)&_s5))==1 || bbStringEquals(bbt_3, ((BBString*)&_s6))==1) || bbStringEquals(bbt_3, ((BBString*)&_s7))==1) || bbStringEquals(bbt_3, ((BBString*)&_s8))==1) || bbStringEquals(bbt_3, ((BBString*)&_s9))==1) || bbStringEquals(bbt_3, ((BBString*)&_s10))==1) || bbStringEquals(bbt_3, ((BBString*)&_s11))==1){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 178, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_dbType=2;
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 179, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(bbStringEquals(bbt_3, ((BBString*)&_s12))==1){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 180, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_dbType=5;
					bbOnDebugLeaveScope();
				}else{
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 181, 0};
					bbOnDebugEnterStm(&__stmt_0);
					if((bbStringEquals(bbt_3, ((BBString*)&_s13))==1 || bbStringEquals(bbt_3, ((BBString*)&_s14))==1) || bbStringEquals(bbt_3, ((BBString*)&_s15))==1){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 182, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bbt_dbType=3;
						bbOnDebugLeaveScope();
					}else{
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 183, 0};
						bbOnDebugEnterStm(&__stmt_0);
						if(bbStringEquals(bbt_3, ((BBString*)&_s16))==1){
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 184, 0};
							bbOnDebugEnterStm(&__stmt_0);
							bbt_dbType=4;
							bbOnDebugLeaveScope();
						}else{
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 185, 0};
							bbOnDebugEnterStm(&__stmt_0);
							if(bbStringEquals(bbt_3, ((BBString*)&_s17))==1){
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 186, 0};
								bbOnDebugEnterStm(&__stmt_0);
								bbt_dbType=6;
								bbOnDebugLeaveScope();
							}else{
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 187, 0};
								bbOnDebugEnterStm(&__stmt_0);
								if(bbStringEquals(bbt_3, ((BBString*)&_s18))==1 || bbStringEquals(bbt_3, ((BBString*)&_s19))==1){
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 188, 0};
									bbOnDebugEnterStm(&__stmt_0);
									bbt_dbType=8;
									bbOnDebugLeaveScope();
								}else{
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 189, 0};
									bbOnDebugEnterStm(&__stmt_0);
									if(bbStringEquals(bbt_3, ((BBString*)&_s20))==1){
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 190, 0};
										bbOnDebugEnterStm(&__stmt_0);
										bbt_dbType=9;
										bbOnDebugLeaveScope();
									}else{
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 191, 0};
										bbOnDebugEnterStm(&__stmt_0);
										if(((bbStringEquals(bbt_3, ((BBString*)&_s21))==1 || bbStringEquals(bbt_3, ((BBString*)&_s22))==1) || bbStringEquals(bbt_3, ((BBString*)&_s23))==1) || bbStringEquals(bbt_3, ((BBString*)&_s24))==1){
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 192, 0};
											bbOnDebugEnterStm(&__stmt_0);
											bbt_dbType=7;
											bbOnDebugLeaveScope();
										}else{
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 194, 0};
											bbOnDebugEnterStm(&__stmt_0);
											bbt_dbType=1;
											bbOnDebugLeaveScope();
										}
										bbOnDebugLeaveScope();
									}
									bbOnDebugLeaveScope();
								}
								bbOnDebugLeaveScope();
							}
							bbOnDebugLeaveScope();
						}
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 197, 0};
			bbOnDebugEnterStm(&__stmt_5);
			bbt_nullable=0;
			struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 198, 0};
			bbOnDebugEnterStm(&__stmt_6);
			if(bbStringEquals(((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)bbt_rec))->clas->m_getString_i((struct database_core_TQueryRecord_obj*)bbt_rec,2), ((BBString*)&_s25))==1){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 199, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_nullable=1;
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 202, 0};
			bbOnDebugEnterStm(&__stmt_7);
			bbt_defaultValue=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)bbt_rec))->clas->m_value_i((struct database_core_TQueryRecord_obj*)bbt_rec,4);
			struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 204, 0};
			bbOnDebugEnterStm(&__stmt_8);
			((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_cols))->clas->m_AddLast_TObject((struct brl_linkedlist_TList_obj*)bbt_cols,(BBOBJECT)database_core_TDBColumn_Create_TTDBColumn_SiiTTDBType(bbt_name,bbt_dbType,bbt_nullable,(struct database_core_dbtypes_TDBType_obj*)bbt_defaultValue));
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 207, 0};
		bbOnDebugEnterStm(&__stmt_4);
		((struct database_core_TDBTable_obj*)bbNullObjectTest((BBObject*)bbt_table))->clas->m_SetCountColumns_i((struct database_core_TDBTable_obj*)bbt_table,((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_cols))->clas->m_Count((struct brl_linkedlist_TList_obj*)bbt_cols));
		struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 208, 0};
		bbOnDebugEnterStm(&__stmt_5);
		bbt_i=0;
		struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 209, 0};
		bbOnDebugEnterStm(&__stmt_6);
		struct brl_linkedlist_TListEnum_obj* bbt_4=(struct brl_linkedlist_TListEnum_obj*)((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_cols))->clas->m_ObjectEnumerator((struct brl_linkedlist_TList_obj*)bbt_cols);
		while(((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_4))->clas->m_HasNext((struct brl_linkedlist_TListEnum_obj*)bbt_4)!=0){
			struct database_core_TDBColumn_obj* bbt_col=(struct database_core_TDBColumn_obj*)((struct database_core_TDBColumn_obj*)&bbNullObject);
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"col",
						":TDBColumn",
						.var_address=&bbt_col
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			bbt_col=(struct database_core_TDBColumn_obj*)((struct database_core_TDBColumn_obj*)bbObjectDowncast((BBOBJECT)((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_4))->clas->m_NextObject((struct brl_linkedlist_TListEnum_obj*)bbt_4),(BBClass*)&database_core_TDBColumn));
			if(((BBOBJECT)bbt_col)==&bbNullObject){
				bbOnDebugLeaveScope();
				continue;
			}
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 210, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBTable_obj*)bbNullObjectTest((BBObject*)bbt_table))->clas->m_SetColumn_iTTDBColumn((struct database_core_TDBTable_obj*)bbt_table,bbt_i,(struct database_core_TDBColumn_obj*)bbt_col);
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 211, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbt_i+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 214, 0};
		bbOnDebugEnterStm(&__stmt_7);
		((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)bbt_cols))->clas->m_Clear((struct brl_linkedlist_TList_obj*)bbt_cols);
		struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 216, 0};
		bbOnDebugEnterStm(&__stmt_8);
		if(bbt_withDDL!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 217, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_sql=bbStringConcat(((BBString*)&_s26),bbt_tableName);
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 218, 0};
			bbOnDebugEnterStm(&__stmt_1);
			if(((struct database_core_TDatabaseQuery_obj*)bbNullObjectTest((BBObject*)bbt_query))->clas->m_execute_S((struct database_core_TDatabaseQuery_obj*)bbt_query,bbt_sql)!=0){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 220, 0};
				bbOnDebugEnterStm(&__stmt_0);
				struct database_core_TRowEnumerator_obj* bbt_5=(struct database_core_TRowEnumerator_obj*)((struct database_core_TDatabaseQuery_obj*)bbNullObjectTest((BBObject*)bbt_query))->clas->m_ObjectEnumerator((struct database_core_TDatabaseQuery_obj*)bbt_query);
				while(((struct database_core_TRowEnumerator_obj*)bbNullObjectTest((BBObject*)bbt_5))->clas->m_HasNext((struct database_core_TRowEnumerator_obj*)bbt_5)!=0){
					struct database_core_TQueryRecord_obj* bbt_rec2=(struct database_core_TQueryRecord_obj*)((struct database_core_TQueryRecord_obj*)&bbNullObject);
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"rec",
								":TQueryRecord",
								.var_address=&bbt_rec2
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					bbt_rec2=(struct database_core_TQueryRecord_obj*)((struct database_core_TQueryRecord_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_TRowEnumerator_obj*)bbNullObjectTest((BBObject*)bbt_5))->clas->m_NextObject((struct database_core_TRowEnumerator_obj*)bbt_5),(BBClass*)&database_core_TQueryRecord));
					if(((BBOBJECT)bbt_rec2)==&bbNullObject){
						bbOnDebugLeaveScope();
						continue;
					}
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 221, 0};
					bbOnDebugEnterStm(&__stmt_0);
					((struct database_core_TDBTable_obj*)bbNullObjectTest((BBObject*)bbt_table))->_database_core_tdbtable_ddl =bbStringConcat(((struct database_core_TDBTable_obj*)bbNullObjectTest((BBObject*)bbt_table))->_database_core_tdbtable_ddl ,(bbStringConcat(((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)bbt_rec2))->clas->m_getString_i((struct database_core_TQueryRecord_obj*)bbt_rec2,1),((BBString*)&_s27))));
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 231, 0};
	bbOnDebugEnterStm(&__stmt_5);
	bbOnDebugLeaveScope();
	return (struct database_core_TDBTable_obj*)bbt_table;
}
BBINT _database_mariadb_TDBMariaDB_open_SS(struct database_mariadb_TDBMariaDB_obj* o,BBSTRING bbt_user,BBSTRING bbt_pass){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_3 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"open",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"user",
				"$",
				.var_address=&bbt_user
			},
			{
				BBDEBUGDECL_LOCAL,
				"pass",
				"$",
				.var_address=&bbt_pass
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 235, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 236, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_mariadb_TDBMariaDB_obj*)o)->clas->m_close((struct database_mariadb_TDBMariaDB_obj*)o);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 239, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(bbt_user!= &bbEmptyString){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 240, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__user =bbt_user;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 243, 0};
	bbOnDebugEnterStm(&__stmt_2);
	if(bbt_pass!= &bbEmptyString){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 244, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__password =bbt_pass;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 248, 0};
	bbOnDebugEnterStm(&__stmt_3);
	((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle =mysql_init(0);
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 250, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ){
		BBINT bbt_ret=0;
		BBBYTE* bbt_d=0;
		struct BBDebugScope_2 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"ret",
					"i",
					.var_address=&bbt_ret
				},
				{
					BBDEBUGDECL_LOCAL,
					"d",
					"*b",
					.var_address=&bbt_d
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 252, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_ret=0;
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 254, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbt_d=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__dbname );
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 256, 0};
		bbOnDebugEnterStm(&__stmt_2);
		if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__host != &bbEmptyString){
			BBBYTE* bbt_h=0;
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"h",
						"*b",
						.var_address=&bbt_h
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 257, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_h=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__host );
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 258, 0};
			bbOnDebugEnterStm(&__stmt_1);
			if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__user != &bbEmptyString){
				BBBYTE* bbt_u=0;
				struct BBDebugScope_1 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"u",
							"*b",
							.var_address=&bbt_u
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 259, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_u=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__user );
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 260, 0};
				bbOnDebugEnterStm(&__stmt_1);
				if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__password != &bbEmptyString){
					BBBYTE* bbt_p=0;
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"p",
								"*b",
								.var_address=&bbt_p
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 261, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_p=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__password );
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 262, 0};
					bbOnDebugEnterStm(&__stmt_1);
					bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_h,bbt_u,bbt_p,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
					struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 263, 0};
					bbOnDebugEnterStm(&__stmt_2);
					bbMemFree((void*)bbt_p);
					bbOnDebugLeaveScope();
				}else{
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 265, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_h,bbt_u,0,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
					bbOnDebugLeaveScope();
				}
				struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 267, 0};
				bbOnDebugEnterStm(&__stmt_2);
				bbMemFree((void*)bbt_u);
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 269, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_h,0,0,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 271, 0};
			bbOnDebugEnterStm(&__stmt_2);
			bbMemFree((void*)bbt_h);
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 273, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__user != &bbEmptyString){
				BBBYTE* bbt_u2=0;
				struct BBDebugScope_1 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"u",
							"*b",
							.var_address=&bbt_u2
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 274, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_u2=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__user );
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 275, 0};
				bbOnDebugEnterStm(&__stmt_1);
				if(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__password != &bbEmptyString){
					BBBYTE* bbt_p2=0;
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"p",
								"*b",
								.var_address=&bbt_p2
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 276, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_p2=bbStringToUTF8String((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__password );
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 277, 0};
					bbOnDebugEnterStm(&__stmt_1);
					bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,0,bbt_u2,bbt_p2,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
					struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 278, 0};
					bbOnDebugEnterStm(&__stmt_2);
					bbMemFree((void*)bbt_p2);
					bbOnDebugLeaveScope();
				}else{
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 280, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,0,bbt_u2,0,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
					bbOnDebugLeaveScope();
				}
				struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 282, 0};
				bbOnDebugEnterStm(&__stmt_2);
				bbMemFree((void*)bbt_u2);
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 284, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_ret=mysql_real_connect(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,0,0,0,bbt_d,((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__port ,0,bbStringToInt((BBSTRING)((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__options ));
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 288, 0};
		bbOnDebugEnterStm(&__stmt_3);
		if(!(bbt_ret!=0)){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 289, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
			((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s28),bbStringFromUTF8String(mysql_error(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle )),2,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 290, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 293, 0};
		bbOnDebugEnterStm(&__stmt_4);
		BBBYTE* bbt_ = (BBBYTE*)bbStringToCString(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__dbname );
		if(mysql_select_db(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,(bbt_))!=0){
			bbMemFree(bbt_);
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 294, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
			((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,bbStringConcat(bbStringConcat(((BBString*)&_s29),((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__dbname ),((BBString*)&_s30)),bbStringFromUTF8String(mysql_error(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle )),2,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 295, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		bbMemFree(bbt_);
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 298, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s31),(&bbEmptyString),2,0);
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 299, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 302, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tdbmariadb_clientversion >=50007){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 303, 0};
		bbOnDebugEnterStm(&__stmt_0);
		BBBYTE* bbt_2 = (BBBYTE*)bbStringToCString((BBString*)&_s32);
		mysql_set_character_set(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_2);
		bbMemFree(bbt_2);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 306, 0};
	bbOnDebugEnterStm(&__stmt_6);
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tdbmariadb_serverversion =mysql_get_server_version(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle );
	struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 308, 0};
	bbOnDebugEnterStm(&__stmt_7);
	((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen =1;
	struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 309, 0};
	bbOnDebugEnterStm(&__stmt_8);
	bbOnDebugLeaveScope();
	return 1;
}
BBINT _database_mariadb_TDBMariaDB_rollback(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"rollback",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 313, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 314, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 317, 0};
	bbOnDebugEnterStm(&__stmt_1);
	BBBYTE* bbt_ = (BBBYTE*)bbStringToCString((BBString*)&_s33);
	if(mysql_query(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_)!=0){
		bbMemFree(bbt_);
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 318, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s34),(&bbEmptyString),1,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 319, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	bbMemFree(bbt_);
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 322, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbOnDebugLeaveScope();
	return 1;
}
BBINT _database_mariadb_TDBMariaDB_startTransaction(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"startTransaction",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 326, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection__isopen !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 327, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 330, 0};
	bbOnDebugEnterStm(&__stmt_1);
	BBBYTE* bbt_ = (BBBYTE*)bbStringToCString((BBString*)&_s35);
	if(mysql_query(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ,bbt_)!=0){
		bbMemFree(bbt_);
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 331, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_core_TDBConnection_obj*)o)->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)o,((BBString*)&_s36),(&bbEmptyString),1,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 332, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	bbMemFree(bbt_);
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 335, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbOnDebugLeaveScope();
	return 1;
}
BBBYTE* _database_mariadb_TDBMariaDB_databaseHandle(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"databaseHandle",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 339, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return ((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tdbconnection_handle ;
}
struct database_core_TQueryResultSet_obj* _database_mariadb_TDBMariaDB_createResultSet(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"createResultSet",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 343, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return (struct database_core_TQueryResultSet_obj*)database_mariadb_TMySQLResultSet_Create_TTQueryResultSet_TTDBConnectionS((struct database_core_TDBConnection_obj*)((struct database_core_TDBConnection_obj*)bbObjectDowncast((BBOBJECT)o,(BBClass*)&database_core_TDBConnection)),(&bbEmptyString));
}
BBSTRING _database_mariadb_TDBMariaDB_nativeErrorMessage_i(struct database_mariadb_TDBMariaDB_obj* o,BBINT bbt_err){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"nativeErrorMessage",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"err",
				"i",
				.var_address=&bbt_err
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	bbOnDebugLeaveScope();
	return ((BBString*)&bbEmptyString);
}
BBINT _database_mariadb_TDBMariaDB_hasPrepareSupport(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"hasPrepareSupport",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 350, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return 1;
}
BBINT _database_mariadb_TDBMariaDB_hasTransactionSupport(struct database_mariadb_TDBMariaDB_obj* o){
	((struct database_mariadb_TDBMariaDB_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"hasTransactionSupport",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TDBMariaDB",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 354, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return 1;
}
struct BBDebugScope_17 database_mariadb_TDBMariaDB_scope ={
	BBDEBUGSCOPE_USERTYPE,
	"TDBMariaDB",
	{
		{
			BBDEBUGDECL_FIELD,
			"clientVersion",
			"i",
			.field_offset=offsetof(struct database_mariadb_TDBMariaDB_obj,_database_mariadb_tdbmariadb_clientversion)
		},
		{
			BBDEBUGDECL_FIELD,
			"serverVersion",
			"i",
			.field_offset=offsetof(struct database_mariadb_TDBMariaDB_obj,_database_mariadb_tdbmariadb_serverversion)
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"New",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_New
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"Create",
			"($,$,i,$,$,$,$):TDBConnection",
			.func_ptr=(BBFuncPtr)&database_mariadb_TDBMariaDB_Create_TTDBConnection_SSiSSSS
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"close",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_close
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"isOpen",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_isOpen
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"commit",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_commit
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"getTables",
			"()[]$",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_getTables
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"getTableInfo",
			"($,i):TDBTable",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_getTableInfo_Si
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"open",
			"($,$)i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_open_SS
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"rollback",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_rollback
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"startTransaction",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_startTransaction
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"databaseHandle",
			"()*b",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_databaseHandle
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"createResultSet",
			"():TQueryResultSet",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_createResultSet
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"nativeErrorMessage",
			"(i)$",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_nativeErrorMessage_i
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"hasPrepareSupport",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_hasPrepareSupport
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"hasTransactionSupport",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TDBMariaDB_hasTransactionSupport
		},
		{
			BBDEBUGDECL_END
		}
	}
};
struct BBClass_database_mariadb_TDBMariaDB database_mariadb_TDBMariaDB={
	&database_core_TDBConnection,
	bbObjectFree,
	(BBDebugScope*)&database_mariadb_TDBMariaDB_scope,
	sizeof(struct database_mariadb_TDBMariaDB_obj),
	(void (*)(BBOBJECT))_database_mariadb_TDBMariaDB_New,
	(void (*)(BBOBJECT))_database_mariadb_TDBMariaDB_Delete,
	bbObjectToString,
	bbObjectCompare,
	bbObjectSendMessage,
	0,
	0,
	offsetof(struct database_mariadb_TDBMariaDB_obj,_database_mariadb_tdbmariadb_serverversion) - offsetof(struct database_mariadb_TDBMariaDB_obj,_database_mariadb_tdbmariadb_clientversion) + sizeof(BBINT)
	,0
	,offsetof(struct database_mariadb_TDBMariaDB_obj,_database_mariadb_tdbmariadb_clientversion)
	,database_mariadb_TDBMariaDB_Create_TTDBConnection_SSiSSSS
	,_database_core_TDBConnection_Init_SSiSSSS
	,_database_mariadb_TDBMariaDB_close
	,_database_mariadb_TDBMariaDB_commit
	,_database_mariadb_TDBMariaDB_getTables
	,_database_mariadb_TDBMariaDB_getTableInfo_Si
	,_database_mariadb_TDBMariaDB_open_SS
	,_database_mariadb_TDBMariaDB_rollback
	,_database_mariadb_TDBMariaDB_startTransaction
	,_database_core_TDBConnection_executeQuery_S
	,_database_mariadb_TDBMariaDB_isOpen
	,_database_core_TDBConnection_getDatabaseName
	,_database_core_TDBConnection_getHost
	,_database_core_TDBConnection_getPortNumber
	,_database_core_TDBConnection_error
	,_database_core_TDBConnection_resetError
	,_database_core_TDBConnection_hasError
	,_database_core_TDBConnection_setError_SSii
	,_database_mariadb_TDBMariaDB_databaseHandle
	,_database_mariadb_TDBMariaDB_createResultSet
	,_database_mariadb_TDBMariaDB_nativeErrorMessage_i
	,_database_mariadb_TDBMariaDB_hasPrepareSupport
	,_database_mariadb_TDBMariaDB_hasTransactionSupport
	,_database_core_TDBConnection_free
};

void _database_mariadb_TMySQLField_New(struct database_mariadb_TMySQLField_obj* o) {
	bbObjectCtor((BBOBJECT)o);
	o->clas = &database_mariadb_TMySQLField;
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_mysqlfield = 0;
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datavalue = 0;
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datalength = 0;
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_isnull = 0;
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_flag = 0;
}
void _database_mariadb_TMySQLField_Delete(struct database_mariadb_TMySQLField_obj* o) {
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Delete",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLField",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 378, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLField_obj*)o)->clas->m_clear((struct database_mariadb_TMySQLField_obj*)o);
	bbOnDebugLeaveScope();
	bbObjectDtor((BBOBJECT)o);
}
void _database_mariadb_TMySQLField_clear(struct database_mariadb_TMySQLField_obj* o){
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"clear",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLField",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 368, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_mysqlfield =0;
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 369, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datavalue ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 370, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbMemFree((void*)((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datavalue );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 371, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datavalue =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 373, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_datalength =0;
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 374, 0};
	bbOnDebugEnterStm(&__stmt_3);
	((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlfield_isnull =0;
	bbOnDebugLeaveScope();
}
struct BBDebugScope_7 database_mariadb_TMySQLField_scope ={
	BBDEBUGSCOPE_USERTYPE,
	"TMySQLField",
	{
		{
			BBDEBUGDECL_FIELD,
			"mySQLField",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_mysqlfield)
		},
		{
			BBDEBUGDECL_FIELD,
			"dataValue",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_datavalue)
		},
		{
			BBDEBUGDECL_FIELD,
			"dataLength",
			"e",
			.field_offset=offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_datalength)
		},
		{
			BBDEBUGDECL_FIELD,
			"isNull",
			"b",
			.field_offset=offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_isnull)
		},
		{
			BBDEBUGDECL_FIELD,
			"flag",
			"i",
			.field_offset=offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_flag)
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"New",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLField_New
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"clear",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLField_clear
		},
		{
			BBDEBUGDECL_END
		}
	}
};
struct BBClass_database_mariadb_TMySQLField database_mariadb_TMySQLField={
	&bbObjectClass,
	bbObjectFree,
	(BBDebugScope*)&database_mariadb_TMySQLField_scope,
	sizeof(struct database_mariadb_TMySQLField_obj),
	(void (*)(BBOBJECT))_database_mariadb_TMySQLField_New,
	(void (*)(BBOBJECT))_database_mariadb_TMySQLField_Delete,
	bbObjectToString,
	bbObjectCompare,
	bbObjectSendMessage,
	0,
	0,
	offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_flag) - offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_mysqlfield) + sizeof(BBINT)
	,0
	,offsetof(struct database_mariadb_TMySQLField_obj,_database_mariadb_tmysqlfield_mysqlfield)
	,_database_mariadb_TMySQLField_clear
};

void _database_mariadb_TMySQLResultSet_New(struct database_mariadb_TMySQLResultSet_obj* o) {
	_database_core_TQueryResultSet_New((struct database_core_TQueryResultSet_obj*)o);
	o->clas = &database_mariadb_TMySQLResultSet;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset__rowsaffected = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings = 0;
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields = (&bbEmptyArray);
}
void _database_mariadb_TMySQLResultSet_Delete(struct database_mariadb_TMySQLResultSet_obj* o) {
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Delete",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 925, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_free((struct database_mariadb_TMySQLResultSet_obj*)o);
	bbOnDebugLeaveScope();
	_database_core_TQueryResultSet_Delete((struct database_core_TQueryResultSet_obj*)o);
}
struct database_core_TQueryResultSet_obj* database_mariadb_TMySQLResultSet_Create_TTQueryResultSet_TTDBConnectionS(struct database_core_TDBConnection_obj* bbt_db,BBSTRING bbt_sql){
	struct database_mariadb_TMySQLResultSet_obj* bbt_this=(struct database_mariadb_TMySQLResultSet_obj*)((struct database_mariadb_TMySQLResultSet_obj*)&bbNullObject);
	struct BBDebugScope_3 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Create",
		{
			{
				BBDEBUGDECL_LOCAL,
				"db",
				":TDBConnection",
				.var_address=&bbt_db
			},
			{
				BBDEBUGDECL_LOCAL,
				"sql",
				"$",
				.var_address=&bbt_sql
			},
			{
				BBDEBUGDECL_LOCAL,
				"this",
				":TMySQLResultSet",
				.var_address=&bbt_this
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 402, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_this=(struct database_mariadb_TMySQLResultSet_obj*)(struct database_mariadb_TMySQLResultSet_obj*)bbObjectNew((BBClass *)&database_mariadb_TMySQLResultSet);
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 404, 0};
	bbOnDebugEnterStm(&__stmt_1);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)bbt_this))->clas->m_Init_TTDBConnectionS((struct database_core_TQueryResultSet_obj*)bbt_this,(struct database_core_TDBConnection_obj*)bbt_db,bbt_sql);
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 405, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)bbt_this))->_database_core_tqueryresultset_rec =(struct database_core_TQueryRecord_obj*)database_core_TQueryRecord_Create_TTQueryRecord();
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 407, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbOnDebugLeaveScope();
	return (struct database_core_TQueryResultSet_obj*)((struct database_core_TQueryResultSet_obj*)bbObjectDowncast((BBOBJECT)bbt_this,(BBClass*)&database_core_TQueryResultSet));
}
BBINT _database_mariadb_TMySQLResultSet_executeQuery_S(struct database_mariadb_TMySQLResultSet_obj* o,BBSTRING bbt_statement){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	BBBYTE* bbt_q=0;
	BBINT bbt_query=0;
	BBINT bbt_fieldCount=0;
	BBLONG bbt_af=0;
	struct BBDebugScope_6 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"executeQuery",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"statement",
				"$",
				.var_address=&bbt_statement
			},
			{
				BBDEBUGDECL_LOCAL,
				"q",
				"*b",
				.var_address=&bbt_q
			},
			{
				BBDEBUGDECL_LOCAL,
				"query",
				"i",
				.var_address=&bbt_query
			},
			{
				BBDEBUGDECL_LOCAL,
				"fieldCount",
				"i",
				.var_address=&bbt_fieldCount
			},
			{
				BBDEBUGDECL_LOCAL,
				"af",
				"l",
				.var_address=&bbt_af
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 412, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_isOpen((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn )!=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 413, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 416, 0};
	bbOnDebugEnterStm(&__stmt_1);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery =0;
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 418, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_q=bbStringToUTF8String((BBSTRING)bbt_statement);
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 419, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_query=mysql_real_query(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ,bbt_q,strlen(bbt_q));
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 420, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbMemFree((void*)bbt_q);
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 422, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(bbt_query!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 423, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s37),bbStringFromUTF8String(mysql_error(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle )),3,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 424, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 427, 0};
	bbOnDebugEnterStm(&__stmt_6);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle =mysql_store_result(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle );
	struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 429, 0};
	bbOnDebugEnterStm(&__stmt_7);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle ) && (mysql_field_count(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle )>0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 430, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s38),bbStringFromUTF8String(mysql_error(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle )),3,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 431, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 434, 0};
	bbOnDebugEnterStm(&__stmt_8);
	bbt_fieldCount=mysql_field_count(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle );
	struct BBDebugStm __stmt_9 = {0xe5a06d34a6f7fcd0, 436, 0};
	bbOnDebugEnterStm(&__stmt_9);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_initRecord_i((struct database_mariadb_TMySQLResultSet_obj*)o,bbt_fieldCount);
	struct BBDebugStm __stmt_10 = {0xe5a06d34a6f7fcd0, 438, 0};
	bbOnDebugEnterStm(&__stmt_10);
	bbt_af=0LL;
	struct BBDebugStm __stmt_11 = {0xe5a06d34a6f7fcd0, 439, 0};
	bbOnDebugEnterStm(&__stmt_11);
	bmx_mysql_affected_rows(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ,(&bbt_af));
	struct BBDebugStm __stmt_12 = {0xe5a06d34a6f7fcd0, 440, 0};
	bbOnDebugEnterStm(&__stmt_12);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset__rowsaffected =((BBINT)bbt_af);
	struct BBDebugStm __stmt_13 = {0xe5a06d34a6f7fcd0, 442, 0};
	bbOnDebugEnterStm(&__stmt_13);
	if(bbt_fieldCount!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 444, 0};
		bbOnDebugEnterStm(&__stmt_0);
		{
			BBINT bbt_i=0;
			BBINT bbt_=bbt_fieldCount;
			for(;(bbt_i<bbt_);bbt_i=(bbt_i+1)){
				BBBYTE* bbt__field=0;
				struct database_core_TQueryField_obj* bbt_qf=(struct database_core_TQueryField_obj*)((struct database_core_TQueryField_obj*)&bbNullObject);
				struct BBDebugScope_3 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"i",
							"i",
							.var_address=&bbt_i
						},
						{
							BBDEBUGDECL_LOCAL,
							"_field",
							"*b",
							.var_address=&bbt__field
						},
						{
							BBDEBUGDECL_LOCAL,
							"qf",
							":TQueryField",
							.var_address=&bbt_qf
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 445, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt__field=mysql_fetch_field_direct(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle ,bbt_i);
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 447, 0};
				bbOnDebugEnterStm(&__stmt_1);
				bbt_qf=(struct database_core_TQueryField_obj*)database_core_TQueryField_Create_TTQueryField_Si(bmx_mysql_field_name(bbt__field),o->clas->f_dbTypeFromNative_i_Sii((&bbEmptyString),bmx_mysql_field_type(bbt__field),bmx_mysql_field_flags(bbt__field)));
				struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 448, 0};
				bbOnDebugEnterStm(&__stmt_2);
				((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)bbt_qf))->_database_core_tqueryfield_length =((BBINT)bmx_mysql_field_length(bbt__field));
				struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 449, 0};
				bbOnDebugEnterStm(&__stmt_3);
				((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)bbt_qf))->_database_core_tqueryfield_precision =bmx_mysql_field_decimals(bbt__field);
				struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 451, 0};
				bbOnDebugEnterStm(&__stmt_4);
				((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_setField_iTTQueryField((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ,bbt_i,(struct database_core_TQueryField_obj*)bbt_qf);
				bbOnDebugLeaveScope();
			}
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_14 = {0xe5a06d34a6f7fcd0, 456, 0};
	bbOnDebugEnterStm(&__stmt_14);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset__isactive =1;
	struct BBDebugStm __stmt_15 = {0xe5a06d34a6f7fcd0, 457, 0};
	bbOnDebugEnterStm(&__stmt_15);
	bbOnDebugLeaveScope();
	return 1;
}
BBINT _database_mariadb_TMySQLResultSet_prepare_S(struct database_mariadb_TMySQLResultSet_obj* o,BBSTRING bbt_statement){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	BBBYTE* bbt_q=0;
	BBINT bbt_result=0;
	struct BBDebugScope_4 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"prepare",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"statement",
				"$",
				.var_address=&bbt_statement
			},
			{
				BBDEBUGDECL_LOCAL,
				"q",
				"*b",
				.var_address=&bbt_q
			},
			{
				BBDEBUGDECL_LOCAL,
				"result",
				"i",
				.var_address=&bbt_result
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 462, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_cleanup((struct database_mariadb_TMySQLResultSet_obj*)o);
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 464, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(!(bbt_statement!= &bbEmptyString) || ((bbt_statement->length)==0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 465, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 469, 0};
	bbOnDebugEnterStm(&__stmt_2);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 470, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle =mysql_stmt_init(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle );
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 473, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 474, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s39),bbStringFromUTF8String(mysql_error(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle )),3,mysql_errno(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 475, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 479, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbt_q=bbStringToUTF8String((BBSTRING)bbt_statement);
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 480, 0};
	bbOnDebugEnterStm(&__stmt_5);
	bbt_result=mysql_stmt_prepare(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ,bbt_q,strlen(bbt_q));
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 481, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbMemFree((void*)bbt_q);
	struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 483, 0};
	bbOnDebugEnterStm(&__stmt_7);
	if(bbt_result!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 484, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s39),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 485, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_cleanup((struct database_mariadb_TMySQLResultSet_obj*)o);
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 486, 0};
		bbOnDebugEnterStm(&__stmt_2);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 490, 0};
	bbOnDebugEnterStm(&__stmt_8);
	if(mysql_stmt_param_count(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )>0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 491, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings =bmx_mysql_makeBindings(mysql_stmt_param_count(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_9 = {0xe5a06d34a6f7fcd0, 496, 0};
	bbOnDebugEnterStm(&__stmt_9);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle )){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 497, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle =mysql_stmt_result_metadata(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_10 = {0xe5a06d34a6f7fcd0, 500, 0};
	bbOnDebugEnterStm(&__stmt_10);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle ){
		BBINT bbt_fieldCount=0;
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"fieldCount",
					"i",
					.var_address=&bbt_fieldCount
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 502, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_fieldCount=mysql_num_fields(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 503, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
		((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_initRecord_i((struct database_mariadb_TMySQLResultSet_obj*)o,bbt_fieldCount);
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 505, 0};
		bbOnDebugEnterStm(&__stmt_2);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields =bbArrayNew1D(":TMySQLField", bbt_fieldCount);
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 507, 0};
		bbOnDebugEnterStm(&__stmt_3);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings =bmx_mysql_makeBindings(bbt_fieldCount);
		struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 509, 0};
		bbOnDebugEnterStm(&__stmt_4);
		{
			BBINT bbt_i=0;
			BBINT bbt_=bbt_fieldCount;
			for(;(bbt_i<bbt_);bbt_i=(bbt_i+1)){
				BBBYTE* bbt__field=0;
				BBSIZET bbt_size=0;
				BBINT bbt_ty=0;
				struct database_core_TQueryField_obj* bbt_qf=(struct database_core_TQueryField_obj*)((struct database_core_TQueryField_obj*)&bbNullObject);
				struct BBDebugScope_5 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"i",
							"i",
							.var_address=&bbt_i
						},
						{
							BBDEBUGDECL_LOCAL,
							"_field",
							"*b",
							.var_address=&bbt__field
						},
						{
							BBDEBUGDECL_LOCAL,
							"size",
							"t",
							.var_address=&bbt_size
						},
						{
							BBDEBUGDECL_LOCAL,
							"ty",
							"i",
							.var_address=&bbt_ty
						},
						{
							BBDEBUGDECL_LOCAL,
							"qf",
							":TQueryField",
							.var_address=&bbt_qf
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 511, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt__field=mysql_fetch_field(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle );
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 513, 0};
				bbOnDebugEnterStm(&__stmt_1);
				((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_mariadb_TMySQLField_obj*)(struct database_mariadb_TMySQLField_obj*)bbObjectAtomicNew((BBClass *)&database_mariadb_TMySQLField);
				struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 515, 0};
				bbOnDebugEnterStm(&__stmt_2);
				((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_mysqlfield =bbt__field;
				struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 516, 0};
				bbOnDebugEnterStm(&__stmt_3);
				((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datalength =(bmx_mysql_field_length(bbt__field)+1);
				struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 518, 0};
				bbOnDebugEnterStm(&__stmt_4);
				bbt_size=bmx_mysql_length_for_field(bbt__field);
				struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 519, 0};
				bbOnDebugEnterStm(&__stmt_5);
				((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue =bbMemAlloc((size_t)bbt_size);
				struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 521, 0};
				bbOnDebugEnterStm(&__stmt_6);
				bbt_ty=bmx_mysql_field_type(bbt__field);
				struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 523, 0};
				bbOnDebugEnterStm(&__stmt_7);
				bbt_qf=(struct database_core_TQueryField_obj*)database_core_TQueryField_Create_TTQueryField_Si(bmx_mysql_field_name(bbt__field),o->clas->f_dbTypeFromNative_i_Sii((&bbEmptyString),bbt_ty,bmx_mysql_field_flags(bbt__field)));
				struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 524, 0};
				bbOnDebugEnterStm(&__stmt_8);
				((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)bbt_qf))->_database_core_tqueryfield_length =((BBINT)bmx_mysql_field_length(bbt__field));
				struct BBDebugStm __stmt_9 = {0xe5a06d34a6f7fcd0, 525, 0};
				bbOnDebugEnterStm(&__stmt_9);
				((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)bbt_qf))->_database_core_tqueryfield_precision =bmx_mysql_field_decimals(bbt__field);
				struct BBDebugStm __stmt_10 = {0xe5a06d34a6f7fcd0, 526, 0};
				bbOnDebugEnterStm(&__stmt_10);
				((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_setField_iTTQueryField((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ,bbt_i,(struct database_core_TQueryField_obj*)bbt_qf);
				struct BBDebugStm __stmt_11 = {0xe5a06d34a6f7fcd0, 528, 0};
				bbOnDebugEnterStm(&__stmt_11);
				bmx_mysql_inbind(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings ,bbt_i,bbt__field,((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ,(&((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datalength ),((BBINT*)(&((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_isnull )),bbt_ty);
				bbOnDebugLeaveScope();
			}
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_11 = {0xe5a06d34a6f7fcd0, 533, 0};
	bbOnDebugEnterStm(&__stmt_11);
	bbOnDebugLeaveScope();
	return 1;
}
BBINT _database_mariadb_TMySQLResultSet_execute(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	BBINT bbt_result=0;
	BBARRAY bbt_values=(&bbEmptyArray);
	BBINT bbt_paramCount=0;
	BBARRAY bbt_strings=(&bbEmptyArray);
	BBARRAY bbt_times=(&bbEmptyArray);
	BBARRAY bbt_nulls=(&bbEmptyArray);
	BBLONG bbt_af=0;
	struct BBDebugScope_8 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"execute",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"result",
				"i",
				.var_address=&bbt_result
			},
			{
				BBDEBUGDECL_LOCAL,
				"values",
				"[]:TDBType",
				.var_address=&bbt_values
			},
			{
				BBDEBUGDECL_LOCAL,
				"paramCount",
				"i",
				.var_address=&bbt_paramCount
			},
			{
				BBDEBUGDECL_LOCAL,
				"strings",
				"[]*b",
				.var_address=&bbt_strings
			},
			{
				BBDEBUGDECL_LOCAL,
				"times",
				"[]*b",
				.var_address=&bbt_times
			},
			{
				BBDEBUGDECL_LOCAL,
				"nulls",
				"[]b",
				.var_address=&bbt_nulls
			},
			{
				BBDEBUGDECL_LOCAL,
				"af",
				"l",
				.var_address=&bbt_af
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 538, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery !=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 539, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 542, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 543, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 546, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_index =-1;
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 548, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_result=0;
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 550, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbt_result=bmx_mysql_stmt_reset(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 551, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(bbt_result!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 552, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s40),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 553, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 557, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_values=((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_boundvalues ;
	struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 559, 0};
	bbOnDebugEnterStm(&__stmt_7);
	bbt_paramCount=mysql_stmt_param_count(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
	struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 561, 0};
	bbOnDebugEnterStm(&__stmt_8);
	bbt_strings=(&bbEmptyArray);
	struct BBDebugStm __stmt_9 = {0xe5a06d34a6f7fcd0, 562, 0};
	bbOnDebugEnterStm(&__stmt_9);
	bbt_times=(&bbEmptyArray);
	struct BBDebugStm __stmt_10 = {0xe5a06d34a6f7fcd0, 563, 0};
	bbOnDebugEnterStm(&__stmt_10);
	bbt_nulls=(&bbEmptyArray);
	struct BBDebugStm __stmt_11 = {0xe5a06d34a6f7fcd0, 565, 0};
	bbOnDebugEnterStm(&__stmt_11);
	if(bbt_paramCount==((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_bindcount ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 567, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_strings=bbArrayNew1D("*b", bbt_paramCount);
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 568, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbt_times=bbArrayNew1D("*b", bbt_paramCount);
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 569, 0};
		bbOnDebugEnterStm(&__stmt_2);
		bbt_nulls=bbArrayNew1D("b", bbt_paramCount);
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 571, 0};
		bbOnDebugEnterStm(&__stmt_3);
		{
			BBINT bbt_i=0;
			BBINT bbt_=bbt_paramCount;
			for(;(bbt_i<bbt_);bbt_i=(bbt_i+1)){
				BBINT bbt_isNull=0;
				BBBYTE* bbt_nullsPtr=0;
				struct BBDebugScope_3 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"i",
							"i",
							.var_address=&bbt_i
						},
						{
							BBDEBUGDECL_LOCAL,
							"isNull",
							"i",
							.var_address=&bbt_isNull
						},
						{
							BBDEBUGDECL_LOCAL,
							"nullsPtr",
							"*b",
							.var_address=&bbt_nullsPtr
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 573, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_isNull=0;
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 574, 0};
				bbOnDebugEnterStm(&__stmt_1);
				bbt_nullsPtr=0;
				struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 576, 0};
				bbOnDebugEnterStm(&__stmt_2);
				struct database_core_dbtypes_TDBType_obj* bbt_2;
				if(!(((BBObject*)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])!= &bbNullObject) || ((((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_2 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_isNull((struct database_core_dbtypes_TDBType_obj*)bbt_2)!=0)){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 577, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_isNull=1;
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 578, 0};
					bbOnDebugEnterStm(&__stmt_1);
					((BBBYTE*)BBARRAYDATAINDEX((bbt_nulls),(bbt_nulls)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=1;
					struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 579, 0};
					bbOnDebugEnterStm(&__stmt_2);
					bbt_nullsPtr=(((BBBYTE*)BBARRAYDATA(bbt_nulls,1))+bbt_i);
					bbOnDebugLeaveScope();
				}
				struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 582, 0};
				bbOnDebugEnterStm(&__stmt_3);
				struct database_core_dbtypes_TDBType_obj* bbt_4;
				BBINT bbt_3=(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_4 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_kind((struct database_core_dbtypes_TDBType_obj*)bbt_4);
				struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 583, 0};
				bbOnDebugEnterStm(&__stmt_4);
				if(bbt_3==2){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 584, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bmx_mysql_bind_int(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,(&((struct database_core_dbtypes_TDBInt_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBInt_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBInt))))->_database_core_dbtypes_tdbint_value ),bbt_nullsPtr);
					bbOnDebugLeaveScope();
				}else{
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 585, 0};
					bbOnDebugEnterStm(&__stmt_0);
					if(bbt_3==4){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 586, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bmx_mysql_bind_float(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,(&((struct database_core_dbtypes_TDBFloat_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBFloat_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBFloat))))->_database_core_dbtypes_tdbfloat_value ),bbt_nullsPtr);
						bbOnDebugLeaveScope();
					}else{
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 587, 0};
						bbOnDebugEnterStm(&__stmt_0);
						if(bbt_3==3){
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 588, 0};
							bbOnDebugEnterStm(&__stmt_0);
							bmx_mysql_bind_double(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,(&((struct database_core_dbtypes_TDBDouble_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBDouble_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBDouble))))->_database_core_dbtypes_tdbdouble_value ),bbt_nullsPtr);
							bbOnDebugLeaveScope();
						}else{
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 589, 0};
							bbOnDebugEnterStm(&__stmt_0);
							if(bbt_3==5){
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 590, 0};
								bbOnDebugEnterStm(&__stmt_0);
								bmx_mysql_bind_long(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,(&((struct database_core_dbtypes_TDBLong_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBLong_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBLong))))->_database_core_dbtypes_tdblong_value ),bbt_nullsPtr);
								bbOnDebugLeaveScope();
							}else{
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 591, 0};
								bbOnDebugEnterStm(&__stmt_0);
								if(bbt_3==1){
									BBBYTE* bbt_s=0;
									struct BBDebugScope_1 __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_LOCAL,
												"s",
												"*b",
												.var_address=&bbt_s
											},
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 592, 0};
									bbOnDebugEnterStm(&__stmt_0);
									struct database_core_dbtypes_TDBType_obj* bbt_5;
									bbt_s=bbStringToUTF8String((BBSTRING)(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_5 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_getString((struct database_core_dbtypes_TDBType_obj*)bbt_5));
									struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 593, 0};
									bbOnDebugEnterStm(&__stmt_1);
									((BBBYTE**)BBARRAYDATAINDEX((bbt_strings),(bbt_strings)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=bbt_s;
									struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 594, 0};
									bbOnDebugEnterStm(&__stmt_2);
									bmx_mysql_bind_string(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,bbt_s,strlen(bbt_s),bbt_nullsPtr);
									bbOnDebugLeaveScope();
								}else{
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 596, 0};
									bbOnDebugEnterStm(&__stmt_0);
									if(bbt_3==7){
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 597, 0};
										bbOnDebugEnterStm(&__stmt_0);
										bmx_mysql_bind_blob(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,((struct database_core_dbtypes_TDBBlob_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBBlob_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBBlob))))->_database_core_dbtypes_tdbblob_value ,((struct database_core_dbtypes_TDBBlob_obj*)bbNullObjectTest((BBObject*)((struct database_core_dbtypes_TDBBlob_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBBlob))))->_database_core_dbtypes_tdbblob__size ,bbt_nullsPtr);
										bbOnDebugLeaveScope();
									}else{
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 599, 0};
										bbOnDebugEnterStm(&__stmt_0);
										if(bbt_3==6){
											struct database_core_dbtypes_TDBDate_obj* bbt_date=(struct database_core_dbtypes_TDBDate_obj*)((struct database_core_dbtypes_TDBDate_obj*)&bbNullObject);
											struct BBDebugScope_1 __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_LOCAL,
														"date",
														":TDBDate",
														.var_address=&bbt_date
													},
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 600, 0};
											bbOnDebugEnterStm(&__stmt_0);
											bbt_date=(struct database_core_dbtypes_TDBDate_obj*)((struct database_core_dbtypes_TDBDate_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBDate));
											struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 601, 0};
											bbOnDebugEnterStm(&__stmt_1);
											((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=bmx_mysql_makeTime();
											struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 602, 0};
											bbOnDebugEnterStm(&__stmt_2);
											bmx_mysql_bind_date(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],((struct database_core_dbtypes_TDBDate_obj*)bbNullObjectTest((BBObject*)bbt_date))->clas->m_getYear((struct database_core_dbtypes_TDBDate_obj*)bbt_date),((struct database_core_dbtypes_TDBDate_obj*)bbNullObjectTest((BBObject*)bbt_date))->clas->m_getMonth((struct database_core_dbtypes_TDBDate_obj*)bbt_date),((struct database_core_dbtypes_TDBDate_obj*)bbNullObjectTest((BBObject*)bbt_date))->clas->m_getDay((struct database_core_dbtypes_TDBDate_obj*)bbt_date),bbt_nullsPtr);
											bbOnDebugLeaveScope();
										}else{
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 603, 0};
											bbOnDebugEnterStm(&__stmt_0);
											if(bbt_3==8){
												struct database_core_dbtypes_TDBDateTime_obj* bbt_date2=(struct database_core_dbtypes_TDBDateTime_obj*)((struct database_core_dbtypes_TDBDateTime_obj*)&bbNullObject);
												struct BBDebugScope_1 __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_LOCAL,
															"date",
															":TDBDateTime",
															.var_address=&bbt_date2
														},
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 604, 0};
												bbOnDebugEnterStm(&__stmt_0);
												bbt_date2=(struct database_core_dbtypes_TDBDateTime_obj*)((struct database_core_dbtypes_TDBDateTime_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBDateTime));
												struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 605, 0};
												bbOnDebugEnterStm(&__stmt_1);
												((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=bmx_mysql_makeTime();
												struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 606, 0};
												bbOnDebugEnterStm(&__stmt_2);
												bmx_mysql_bind_datetime(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getYear((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getMonth((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getDay((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getHour((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getMinute((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),((struct database_core_dbtypes_TDBDateTime_obj*)bbNullObjectTest((BBObject*)bbt_date2))->clas->m_getSecond((struct database_core_dbtypes_TDBDateTime_obj*)bbt_date2),bbt_nullsPtr);
												bbOnDebugLeaveScope();
											}else{
												struct BBDebugScope __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 607, 0};
												bbOnDebugEnterStm(&__stmt_0);
												if(bbt_3==9){
													struct database_core_dbtypes_TDBTime_obj* bbt_date3=(struct database_core_dbtypes_TDBTime_obj*)((struct database_core_dbtypes_TDBTime_obj*)&bbNullObject);
													struct BBDebugScope_1 __scope = {
														BBDEBUGSCOPE_LOCALBLOCK,
														0,
														{
															{
																BBDEBUGDECL_LOCAL,
																"date",
																":TDBTime",
																.var_address=&bbt_date3
															},
															{
																BBDEBUGDECL_END
															}
														}
													};
													bbOnDebugEnterScope((BBDebugScope *)&__scope);
													struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 608, 0};
													bbOnDebugEnterStm(&__stmt_0);
													bbt_date3=(struct database_core_dbtypes_TDBTime_obj*)((struct database_core_dbtypes_TDBTime_obj*)bbObjectDowncast((BBOBJECT)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((bbt_values),(bbt_values)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],(BBClass*)&database_core_dbtypes_TDBTime));
													struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 609, 0};
													bbOnDebugEnterStm(&__stmt_1);
													((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=bmx_mysql_makeTime();
													struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 610, 0};
													bbOnDebugEnterStm(&__stmt_2);
													bmx_mysql_bind_time(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ,bbt_i,((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)],((struct database_core_dbtypes_TDBTime_obj*)bbNullObjectTest((BBObject*)bbt_date3))->clas->m_getHour((struct database_core_dbtypes_TDBTime_obj*)bbt_date3),((struct database_core_dbtypes_TDBTime_obj*)bbNullObjectTest((BBObject*)bbt_date3))->clas->m_getMinute((struct database_core_dbtypes_TDBTime_obj*)bbt_date3),((struct database_core_dbtypes_TDBTime_obj*)bbNullObjectTest((BBObject*)bbt_date3))->clas->m_getSecond((struct database_core_dbtypes_TDBTime_obj*)bbt_date3),bbt_nullsPtr);
													bbOnDebugLeaveScope();
												}
												bbOnDebugLeaveScope();
											}
											bbOnDebugLeaveScope();
										}
										bbOnDebugLeaveScope();
									}
									bbOnDebugLeaveScope();
								}
								bbOnDebugLeaveScope();
							}
							bbOnDebugLeaveScope();
						}
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
		}
		struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 617, 0};
		bbOnDebugEnterStm(&__stmt_4);
		bbt_result=bmx_mysql_stmt_bind_param(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ,((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings );
		struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 619, 0};
		bbOnDebugEnterStm(&__stmt_5);
		if(bbt_result!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 620, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s41),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 623, 0};
			bbOnDebugEnterStm(&__stmt_1);
			{
				BBINT bbt_i2=0;
				BBINT bbt_6=bbt_paramCount;
				for(;(bbt_i2<bbt_6);bbt_i2=(bbt_i2+1)){
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"i",
								"i",
								.var_address=&bbt_i2
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 624, 0};
					bbOnDebugEnterStm(&__stmt_0);
					if(((BBBYTE**)BBARRAYDATAINDEX((bbt_strings),(bbt_strings)->dims,((BBUINT)bbt_i2)))[((BBUINT)bbt_i2)]){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 625, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bbMemFree((void*)((BBBYTE**)BBARRAYDATAINDEX((bbt_strings),(bbt_strings)->dims,((BBUINT)bbt_i2)))[((BBUINT)bbt_i2)]);
						bbOnDebugLeaveScope();
					}
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 628, 0};
					bbOnDebugEnterStm(&__stmt_1);
					if(((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i2)))[((BBUINT)bbt_i2)]){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 629, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bmx_mysql_deleteTime(((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i2)))[((BBUINT)bbt_i2)]);
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
			}
			struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 633, 0};
			bbOnDebugEnterStm(&__stmt_2);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_12 = {0xe5a06d34a6f7fcd0, 639, 0};
	bbOnDebugEnterStm(&__stmt_12);
	bbt_result=mysql_stmt_execute(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
	struct BBDebugStm __stmt_13 = {0xe5a06d34a6f7fcd0, 642, 0};
	bbOnDebugEnterStm(&__stmt_13);
	if((bbt_strings!= &bbEmptyArray) || (bbt_times!= &bbEmptyArray)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 643, 0};
		bbOnDebugEnterStm(&__stmt_0);
		{
			BBINT bbt_i3=0;
			BBINT bbt_7=bbt_paramCount;
			for(;(bbt_i3<bbt_7);bbt_i3=(bbt_i3+1)){
				struct BBDebugScope_1 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"i",
							"i",
							.var_address=&bbt_i3
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 644, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(((BBBYTE**)BBARRAYDATAINDEX((bbt_strings),(bbt_strings)->dims,((BBUINT)bbt_i3)))[((BBUINT)bbt_i3)]){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 645, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbMemFree((void*)((BBBYTE**)BBARRAYDATAINDEX((bbt_strings),(bbt_strings)->dims,((BBUINT)bbt_i3)))[((BBUINT)bbt_i3)]);
					bbOnDebugLeaveScope();
				}
				struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 648, 0};
				bbOnDebugEnterStm(&__stmt_1);
				if(((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i3)))[((BBUINT)bbt_i3)]){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 649, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bmx_mysql_deleteTime(((BBBYTE**)BBARRAYDATAINDEX((bbt_times),(bbt_times)->dims,((BBUINT)bbt_i3)))[((BBUINT)bbt_i3)]);
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_14 = {0xe5a06d34a6f7fcd0, 654, 0};
	bbOnDebugEnterStm(&__stmt_14);
	if(bbt_result!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 655, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s42),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 656, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return 0;
	}
	struct BBDebugStm __stmt_15 = {0xe5a06d34a6f7fcd0, 659, 0};
	bbOnDebugEnterStm(&__stmt_15);
	bbt_af=0LL;
	struct BBDebugStm __stmt_16 = {0xe5a06d34a6f7fcd0, 660, 0};
	bbOnDebugEnterStm(&__stmt_16);
	bmx_mysql_stmt_affected_rows(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ,(&bbt_af));
	struct BBDebugStm __stmt_17 = {0xe5a06d34a6f7fcd0, 661, 0};
	bbOnDebugEnterStm(&__stmt_17);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset__rowsaffected =((BBINT)bbt_af);
	struct BBDebugStm __stmt_18 = {0xe5a06d34a6f7fcd0, 665, 0};
	bbOnDebugEnterStm(&__stmt_18);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 667, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_result=bmx_mysql_stmt_bind_result(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ,((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 669, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(bbt_result!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 670, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s43),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 671, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 674, 0};
		bbOnDebugEnterStm(&__stmt_2);
		bbt_result=mysql_stmt_store_result(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
		struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 676, 0};
		bbOnDebugEnterStm(&__stmt_3);
		if(bbt_result!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 677, 0};
			bbOnDebugEnterStm(&__stmt_0);
			((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->clas->m_setError_SSii((struct database_core_TDBConnection_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ,((BBString*)&_s44),bbStringFromUTF8String(mysql_stmt_error(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )),3,mysql_errno(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ));
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 678, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_19 = {0xe5a06d34a6f7fcd0, 684, 0};
	bbOnDebugEnterStm(&__stmt_19);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset__isactive =1;
	struct BBDebugStm __stmt_20 = {0xe5a06d34a6f7fcd0, 685, 0};
	bbOnDebugEnterStm(&__stmt_20);
	bbOnDebugLeaveScope();
	return 1;
}
void _database_mariadb_TMySQLResultSet_initRecord_i(struct database_mariadb_TMySQLResultSet_obj* o,BBINT bbt_size){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"initRecord",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"size",
				"i",
				.var_address=&bbt_size
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 690, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_clear((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec );
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 692, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(bbt_size>0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 693, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_Init_i((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ,bbt_size);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 696, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_core_TQueryResultSet_obj*)o)->clas->m_resetValues_i((struct database_core_TQueryResultSet_obj*)o,bbt_size);
	bbOnDebugLeaveScope();
}
BBINT _database_mariadb_TMySQLResultSet_firstRow(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"firstRow",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 700, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_index ==-1){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 701, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return ((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_nextRow((struct database_mariadb_TMySQLResultSet_obj*)o);
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 704, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbOnDebugLeaveScope();
	return 0;
}
BBINT _database_mariadb_TMySQLResultSet_nextRow(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"nextRow",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 708, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery !=0){
		BBINT bbt_result=0;
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"result",
					"i",
					.var_address=&bbt_result
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 709, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 710, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 713, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbt_result=bmx_mysql_stmt_fetch(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle );
		struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 714, 0};
		bbOnDebugEnterStm(&__stmt_2);
		if(bbt_result!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 715, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 718, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row =mysql_fetch_row(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 719, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(!(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row )){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 720, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			bbOnDebugLeaveScope();
			return 0;
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 725, 0};
	bbOnDebugEnterStm(&__stmt_1);
	{
		BBINT bbt_i=0;
		BBINT bbt_=((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_count((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec );
		for(;(bbt_i<bbt_);bbt_i=(bbt_i+1)){
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"i",
						"i",
						.var_address=&bbt_i
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 727, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(((BBObject*)((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])!= &bbNullObject){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 728, 0};
				bbOnDebugEnterStm(&__stmt_0);
				struct database_core_dbtypes_TDBType_obj* bbt_2;
				(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_2 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_clear((struct database_core_dbtypes_TDBType_obj*)bbt_2);
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 732, 0};
			bbOnDebugEnterStm(&__stmt_1);
			if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery !=0){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 734, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(!(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_isnull !=0)){
					BBINT bbt_fieldLength=0;
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"fieldLength",
								"i",
								.var_address=&bbt_fieldLength
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 736, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_fieldLength=((BBINT)((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datalength );
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 740, 0};
					bbOnDebugEnterStm(&__stmt_1);
					BBINT bbt_3=((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryField_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->_database_core_tqueryrecord_fields ),(((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->_database_core_tqueryrecord_fields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_core_tqueryfield_ftype ;
					struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 741, 0};
					bbOnDebugEnterStm(&__stmt_2);
					if(bbt_3==2){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 742, 0};
						bbOnDebugEnterStm(&__stmt_0);
						((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBInt_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBInt),(BBClass*)&database_core_dbtypes_TDBType));
						struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 743, 0};
						bbOnDebugEnterStm(&__stmt_1);
						struct database_core_dbtypes_TDBType_obj* bbt_4;
						(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_4 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setInt_i((struct database_core_dbtypes_TDBType_obj*)bbt_4,bmx_mysql_char_to_int(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ));
						bbOnDebugLeaveScope();
					}else{
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 744, 0};
						bbOnDebugEnterStm(&__stmt_0);
						if(bbt_3==5){
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 745, 0};
							bbOnDebugEnterStm(&__stmt_0);
							((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBLong_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBLong),(BBClass*)&database_core_dbtypes_TDBType));
							struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 746, 0};
							bbOnDebugEnterStm(&__stmt_1);
							struct database_core_dbtypes_TDBType_obj* bbt_5;
							(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_5 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setLong_l((struct database_core_dbtypes_TDBType_obj*)bbt_5,bmx_mysql_char_to_long(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ));
							bbOnDebugLeaveScope();
						}else{
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 747, 0};
							bbOnDebugEnterStm(&__stmt_0);
							if(bbt_3==4){
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 748, 0};
								bbOnDebugEnterStm(&__stmt_0);
								((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBFloat_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBFloat),(BBClass*)&database_core_dbtypes_TDBType));
								struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 749, 0};
								bbOnDebugEnterStm(&__stmt_1);
								struct database_core_dbtypes_TDBType_obj* bbt_6;
								(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_6 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_SetFloat_f((struct database_core_dbtypes_TDBType_obj*)bbt_6,bmx_mysql_char_to_float(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ));
								bbOnDebugLeaveScope();
							}else{
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 750, 0};
								bbOnDebugEnterStm(&__stmt_0);
								if(bbt_3==3){
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 751, 0};
									bbOnDebugEnterStm(&__stmt_0);
									((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBDouble_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBDouble),(BBClass*)&database_core_dbtypes_TDBType));
									struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 752, 0};
									bbOnDebugEnterStm(&__stmt_1);
									struct database_core_dbtypes_TDBType_obj* bbt_7;
									(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_7 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setDouble_d((struct database_core_dbtypes_TDBType_obj*)bbt_7,bmx_mysql_char_to_double(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ));
									bbOnDebugLeaveScope();
								}else{
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 753, 0};
									bbOnDebugEnterStm(&__stmt_0);
									if(bbt_3==6){
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 754, 0};
										bbOnDebugEnterStm(&__stmt_0);
										((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)bmx_mysql_char_to_date(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ),(BBClass*)&database_core_dbtypes_TDBType));
										bbOnDebugLeaveScope();
									}else{
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 755, 0};
										bbOnDebugEnterStm(&__stmt_0);
										if(bbt_3==8){
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 756, 0};
											bbOnDebugEnterStm(&__stmt_0);
											((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)bmx_mysql_char_to_datetime(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ),(BBClass*)&database_core_dbtypes_TDBType));
											bbOnDebugLeaveScope();
										}else{
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 757, 0};
											bbOnDebugEnterStm(&__stmt_0);
											if(bbt_3==9){
												struct BBDebugScope __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 758, 0};
												bbOnDebugEnterStm(&__stmt_0);
												((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)bmx_mysql_char_to_time(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ),(BBClass*)&database_core_dbtypes_TDBType));
												bbOnDebugLeaveScope();
											}else{
												struct BBDebugScope __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 759, 0};
												bbOnDebugEnterStm(&__stmt_0);
												if(bbt_3==7){
													struct BBDebugScope __scope = {
														BBDEBUGSCOPE_LOCALBLOCK,
														0,
														{
															{
																BBDEBUGDECL_END
															}
														}
													};
													bbOnDebugEnterScope((BBDebugScope *)&__scope);
													struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 760, 0};
													bbOnDebugEnterStm(&__stmt_0);
													((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)database_core_dbtypes_TDBBlob_Set_TTDBBlob_pbii(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ,bbt_fieldLength,1),(BBClass*)&database_core_dbtypes_TDBType));
													bbOnDebugLeaveScope();
												}else{
													struct BBDebugScope __scope = {
														BBDEBUGSCOPE_LOCALBLOCK,
														0,
														{
															{
																BBDEBUGDECL_END
															}
														}
													};
													bbOnDebugEnterScope((BBDebugScope *)&__scope);
													struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 762, 0};
													bbOnDebugEnterStm(&__stmt_0);
													((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBString_obj*)bbObjectNew((BBClass *)&database_core_dbtypes_TDBString),(BBClass*)&database_core_dbtypes_TDBType));
													struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 763, 0};
													bbOnDebugEnterStm(&__stmt_1);
													struct database_core_dbtypes_TDBType_obj* bbt_8;
													(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_8 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setString_S((struct database_core_dbtypes_TDBType_obj*)bbt_8,database_core_sizedUTF8toISO8859(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_mariadb_tmysqlfield_datavalue ,bbt_fieldLength));
													bbOnDebugLeaveScope();
												}
												bbOnDebugLeaveScope();
											}
											bbOnDebugLeaveScope();
										}
										bbOnDebugLeaveScope();
									}
									bbOnDebugLeaveScope();
								}
								bbOnDebugLeaveScope();
							}
							bbOnDebugLeaveScope();
						}
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 770, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(!(bmx_mysql_rowField_isNull(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i)!=0)){
					BBINT bbt_fieldLength2=0;
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"fieldLength",
								"i",
								.var_address=&bbt_fieldLength2
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 772, 0};
					bbOnDebugEnterStm(&__stmt_0);
					BBULONGINT* bbt_9=mysql_fetch_lengths(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle );
					bbt_fieldLength2=((BBINT)bbt_9[bbt_i]);
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 774, 0};
					bbOnDebugEnterStm(&__stmt_1);
					BBINT bbt_10=((struct database_core_TQueryField_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryField_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->_database_core_tqueryrecord_fields ),(((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->_database_core_tqueryrecord_fields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]))->_database_core_tqueryfield_ftype ;
					struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 775, 0};
					bbOnDebugEnterStm(&__stmt_2);
					if(bbt_10==2){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 776, 0};
						bbOnDebugEnterStm(&__stmt_0);
						((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBInt_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBInt),(BBClass*)&database_core_dbtypes_TDBType));
						struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 777, 0};
						bbOnDebugEnterStm(&__stmt_1);
						struct database_core_dbtypes_TDBType_obj* bbt_11;
						(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_11 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setInt_i((struct database_core_dbtypes_TDBType_obj*)bbt_11,bbStringToInt((BBSTRING)bbStringFromBytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)));
						bbOnDebugLeaveScope();
					}else{
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 778, 0};
						bbOnDebugEnterStm(&__stmt_0);
						if(bbt_10==5){
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 779, 0};
							bbOnDebugEnterStm(&__stmt_0);
							((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBLong_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBLong),(BBClass*)&database_core_dbtypes_TDBType));
							struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 780, 0};
							bbOnDebugEnterStm(&__stmt_1);
							struct database_core_dbtypes_TDBType_obj* bbt_12;
							(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_12 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setLong_l((struct database_core_dbtypes_TDBType_obj*)bbt_12,bbStringToLong((BBSTRING)bbStringFromBytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)));
							bbOnDebugLeaveScope();
						}else{
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 781, 0};
							bbOnDebugEnterStm(&__stmt_0);
							if(bbt_10==4){
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 782, 0};
								bbOnDebugEnterStm(&__stmt_0);
								((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBFloat_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBFloat),(BBClass*)&database_core_dbtypes_TDBType));
								struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 783, 0};
								bbOnDebugEnterStm(&__stmt_1);
								struct database_core_dbtypes_TDBType_obj* bbt_13;
								(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_13 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_SetFloat_f((struct database_core_dbtypes_TDBType_obj*)bbt_13,bbStringToFloat((BBSTRING)bbStringFromBytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)));
								bbOnDebugLeaveScope();
							}else{
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 784, 0};
								bbOnDebugEnterStm(&__stmt_0);
								if(bbt_10==3){
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 785, 0};
									bbOnDebugEnterStm(&__stmt_0);
									((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBDouble_obj*)bbObjectAtomicNew((BBClass *)&database_core_dbtypes_TDBDouble),(BBClass*)&database_core_dbtypes_TDBType));
									struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 786, 0};
									bbOnDebugEnterStm(&__stmt_1);
									struct database_core_dbtypes_TDBType_obj* bbt_14;
									(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_14 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setDouble_d((struct database_core_dbtypes_TDBType_obj*)bbt_14,bbStringToDouble((BBSTRING)bbStringFromBytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)));
									bbOnDebugLeaveScope();
								}else{
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 787, 0};
									bbOnDebugEnterStm(&__stmt_0);
									if(bbt_10==6){
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 788, 0};
										bbOnDebugEnterStm(&__stmt_0);
										((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)database_core_dbtypes_TDBDate_SetFromString_TTDBDate_S(bbStringFromUTF8Bytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)),(BBClass*)&database_core_dbtypes_TDBType));
										bbOnDebugLeaveScope();
									}else{
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 789, 0};
										bbOnDebugEnterStm(&__stmt_0);
										if(bbt_10==8){
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 790, 0};
											bbOnDebugEnterStm(&__stmt_0);
											((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)database_core_dbtypes_TDBDateTime_SetFromString_TTDBDateTime_S(bbStringFromUTF8Bytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)),(BBClass*)&database_core_dbtypes_TDBType));
											bbOnDebugLeaveScope();
										}else{
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 791, 0};
											bbOnDebugEnterStm(&__stmt_0);
											if(bbt_10==9){
												struct BBDebugScope __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 792, 0};
												bbOnDebugEnterStm(&__stmt_0);
												((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)database_core_dbtypes_TDBTime_SetFromString_TTDBTime_S(bbStringFromUTF8Bytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2)),(BBClass*)&database_core_dbtypes_TDBType));
												bbOnDebugLeaveScope();
											}else{
												struct BBDebugScope __scope = {
													BBDEBUGSCOPE_LOCALBLOCK,
													0,
													{
														{
															BBDEBUGDECL_END
														}
													}
												};
												bbOnDebugEnterScope((BBDebugScope *)&__scope);
												struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 793, 0};
												bbOnDebugEnterStm(&__stmt_0);
												if(bbt_10==7){
													struct BBDebugScope __scope = {
														BBDEBUGSCOPE_LOCALBLOCK,
														0,
														{
															{
																BBDEBUGDECL_END
															}
														}
													};
													bbOnDebugEnterScope((BBDebugScope *)&__scope);
													struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 794, 0};
													bbOnDebugEnterStm(&__stmt_0);
													((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)database_core_dbtypes_TDBBlob_Set_TTDBBlob_pbii(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2,1),(BBClass*)&database_core_dbtypes_TDBType));
													bbOnDebugLeaveScope();
												}else{
													struct BBDebugScope __scope = {
														BBDEBUGSCOPE_LOCALBLOCK,
														0,
														{
															{
																BBDEBUGDECL_END
															}
														}
													};
													bbOnDebugEnterScope((BBDebugScope *)&__scope);
													struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 796, 0};
													bbOnDebugEnterStm(&__stmt_0);
													((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_core_dbtypes_TDBType_obj*)((struct database_core_dbtypes_TDBType_obj*)bbObjectDowncast((BBOBJECT)(struct database_core_dbtypes_TDBString_obj*)bbObjectNew((BBClass *)&database_core_dbtypes_TDBString),(BBClass*)&database_core_dbtypes_TDBType));
													struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 797, 0};
													bbOnDebugEnterStm(&__stmt_1);
													struct database_core_dbtypes_TDBType_obj* bbt_15;
													(((struct database_core_dbtypes_TDBType_obj*)bbNullObjectTest((BBObject*)(bbt_15 = ((struct database_core_dbtypes_TDBType_obj**)BBARRAYDATAINDEX((((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values ),(((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_values )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_setString_S((struct database_core_dbtypes_TDBType_obj*)bbt_15,bbStringFromUTF8Bytes(bmx_mysql_rowField_chars(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_row ,bbt_i),bbt_fieldLength2));
													bbOnDebugLeaveScope();
												}
												bbOnDebugLeaveScope();
											}
											bbOnDebugLeaveScope();
										}
										bbOnDebugLeaveScope();
									}
									bbOnDebugLeaveScope();
								}
								bbOnDebugLeaveScope();
							}
							bbOnDebugLeaveScope();
						}
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 806, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_index +=1;
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 808, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbOnDebugLeaveScope();
	return 1;
}
BBLONG _database_mariadb_TMySQLResultSet_lastInsertedId(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	BBLONG bbt_id=0;
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"lastInsertedId",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_LOCAL,
				"id",
				"l",
				.var_address=&bbt_id
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 812, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o));
	if(!(((struct database_core_TQueryResultSet_obj*)o)->clas->m_isActive((struct database_core_TQueryResultSet_obj*)o)!=0)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 813, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return -1LL;
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 816, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_id=-1LL;
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 818, 0};
	bbOnDebugEnterStm(&__stmt_2);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery !=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 819, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bmx_mysql_stmt_insert_id(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ,(&bbt_id));
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 821, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bmx_mysql_insert_id(((struct database_core_TDBConnection_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_conn ))->_database_core_tdbconnection_handle ,(&bbt_id));
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 824, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbOnDebugLeaveScope();
	return bbt_id;
}
BBINT _database_mariadb_TMySQLResultSet_rowsAffected(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"rowsAffected",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 828, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbOnDebugLeaveScope();
	return ((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset__rowsaffected ;
}
BBINT database_mariadb_TMySQLResultSet_dbTypeFromNative_i_Sii(BBSTRING bbt_name,BBINT bbt__type,BBINT bbt__flags){
	BBINT bbt_dbType=0;
	struct BBDebugScope_4 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"dbTypeFromNative",
		{
			{
				BBDEBUGDECL_LOCAL,
				"name",
				"$",
				.var_address=&bbt_name
			},
			{
				BBDEBUGDECL_LOCAL,
				"_type",
				"i",
				.var_address=&bbt__type
			},
			{
				BBDEBUGDECL_LOCAL,
				"_flags",
				"i",
				.var_address=&bbt__flags
			},
			{
				BBDEBUGDECL_LOCAL,
				"dbType",
				"i",
				.var_address=&bbt_dbType
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 833, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_dbType=0;
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 835, 0};
	bbOnDebugEnterStm(&__stmt_1);
	BBINT bbt_=bbt__type;
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 836, 0};
	bbOnDebugEnterStm(&__stmt_2);
	if((((bbt_==1) || (bbt_==2)) || (bbt_==3)) || (bbt_==9)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 837, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_dbType=2;
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 838, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(bbt_==13){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 839, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_dbType=2;
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 840, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(bbt_==8){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 841, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_dbType=5;
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 842, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(bbt_==4){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 843, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_dbType=4;
					bbOnDebugLeaveScope();
				}else{
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 844, 0};
					bbOnDebugEnterStm(&__stmt_0);
					if((bbt_==5) || (bbt_==0)){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 845, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bbt_dbType=3;
						bbOnDebugLeaveScope();
					}else{
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 846, 0};
						bbOnDebugEnterStm(&__stmt_0);
						if(bbt_==10){
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 847, 0};
							bbOnDebugEnterStm(&__stmt_0);
							bbt_dbType=6;
							bbOnDebugLeaveScope();
						}else{
							struct BBDebugScope __scope = {
								BBDEBUGSCOPE_LOCALBLOCK,
								0,
								{
									{
										BBDEBUGDECL_END
									}
								}
							};
							bbOnDebugEnterScope((BBDebugScope *)&__scope);
							struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 848, 0};
							bbOnDebugEnterStm(&__stmt_0);
							if(bbt_==11){
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 849, 0};
								bbOnDebugEnterStm(&__stmt_0);
								bbt_dbType=9;
								bbOnDebugLeaveScope();
							}else{
								struct BBDebugScope __scope = {
									BBDEBUGSCOPE_LOCALBLOCK,
									0,
									{
										{
											BBDEBUGDECL_END
										}
									}
								};
								bbOnDebugEnterScope((BBDebugScope *)&__scope);
								struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 850, 0};
								bbOnDebugEnterStm(&__stmt_0);
								if((bbt_==12) || (bbt_==7)){
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 851, 0};
									bbOnDebugEnterStm(&__stmt_0);
									bbt_dbType=8;
									bbOnDebugLeaveScope();
								}else{
									struct BBDebugScope __scope = {
										BBDEBUGSCOPE_LOCALBLOCK,
										0,
										{
											{
												BBDEBUGDECL_END
											}
										}
									};
									bbOnDebugEnterScope((BBDebugScope *)&__scope);
									struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 852, 0};
									bbOnDebugEnterStm(&__stmt_0);
									if((((bbt_==252) || (bbt_==249)) || (bbt_==250)) || (bbt_==251)){
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 853, 0};
										bbOnDebugEnterStm(&__stmt_0);
										if(((unsigned int)(bbt__flags)&(unsigned int)(128))!=0){
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 854, 0};
											bbOnDebugEnterStm(&__stmt_0);
											bbt_dbType=7;
											bbOnDebugLeaveScope();
										}else{
											struct BBDebugScope __scope = {
												BBDEBUGSCOPE_LOCALBLOCK,
												0,
												{
													{
														BBDEBUGDECL_END
													}
												}
											};
											bbOnDebugEnterScope((BBDebugScope *)&__scope);
											struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 856, 0};
											bbOnDebugEnterStm(&__stmt_0);
											bbt_dbType=1;
											bbOnDebugLeaveScope();
										}
										bbOnDebugLeaveScope();
									}else{
										struct BBDebugScope __scope = {
											BBDEBUGSCOPE_LOCALBLOCK,
											0,
											{
												{
													BBDEBUGDECL_END
												}
											}
										};
										bbOnDebugEnterScope((BBDebugScope *)&__scope);
										struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 859, 0};
										bbOnDebugEnterStm(&__stmt_0);
										bbt_dbType=1;
										bbOnDebugLeaveScope();
									}
									bbOnDebugLeaveScope();
								}
								bbOnDebugLeaveScope();
							}
							bbOnDebugLeaveScope();
						}
						bbOnDebugLeaveScope();
					}
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 862, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbOnDebugLeaveScope();
	return bbt_dbType;
}
void _database_mariadb_TMySQLResultSet_cleanup(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"cleanup",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 867, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 868, 0};
		bbOnDebugEnterStm(&__stmt_0);
		mysql_free_result(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 869, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_resulthandle =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 872, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 873, 0};
		bbOnDebugEnterStm(&__stmt_0);
		mysql_free_result(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 874, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_metahandle =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0xe5a06d34a6f7fcd0, 877, 0};
	bbOnDebugEnterStm(&__stmt_2);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 878, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(bmx_mysql_stmt_close(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle )!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 881, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_stmthandle =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_3 = {0xe5a06d34a6f7fcd0, 884, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 885, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bmx_mysql_deleteBindings(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 886, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_parameterbindings =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_4 = {0xe5a06d34a6f7fcd0, 889, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings ){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 890, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bmx_mysql_deleteBindings(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings );
		struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 891, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_selectbindings =0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_5 = {0xe5a06d34a6f7fcd0, 894, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields != &bbEmptyArray){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 895, 0};
		bbOnDebugEnterStm(&__stmt_0);
		{
			BBINT bbt_i=0;
			BBINT bbt_=(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ->scales[0]);
			for(;(bbt_i<bbt_);bbt_i=(bbt_i+1)){
				struct BBDebugScope_1 __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_LOCAL,
							"i",
							"i",
							.var_address=&bbt_i
						},
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 896, 0};
				bbOnDebugEnterStm(&__stmt_0);
				if(((BBObject*)((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])!= &bbNullObject){
					struct BBDebugScope __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 897, 0};
					bbOnDebugEnterStm(&__stmt_0);
					struct database_mariadb_TMySQLField_obj* bbt_2;
					(((struct database_mariadb_TMySQLField_obj*)bbNullObjectTest((BBObject*)(bbt_2 = ((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)])))->clas)->m_clear((struct database_mariadb_TMySQLField_obj*)bbt_2);
					struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 898, 0};
					bbOnDebugEnterStm(&__stmt_1);
					((struct database_mariadb_TMySQLField_obj**)BBARRAYDATAINDEX((((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields ),(((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_mysqlfields )->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=(struct database_mariadb_TMySQLField_obj*)&bbNullObject;
					bbOnDebugLeaveScope();
				}
				bbOnDebugLeaveScope();
			}
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_6 = {0xe5a06d34a6f7fcd0, 903, 0};
	bbOnDebugEnterStm(&__stmt_6);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_index =-1;
	struct BBDebugStm __stmt_7 = {0xe5a06d34a6f7fcd0, 904, 0};
	bbOnDebugEnterStm(&__stmt_7);
	((struct database_core_TQueryRecord_obj*)bbNullObjectTest((BBObject*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec ))->clas->m_clear((struct database_core_TQueryRecord_obj*)((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset_rec );
	struct BBDebugStm __stmt_8 = {0xe5a06d34a6f7fcd0, 905, 0};
	bbOnDebugEnterStm(&__stmt_8);
	((struct database_core_TQueryResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_core_tqueryresultset__isactive =0;
	struct BBDebugStm __stmt_9 = {0xe5a06d34a6f7fcd0, 907, 0};
	bbOnDebugEnterStm(&__stmt_9);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o))->_database_mariadb_tmysqlresultset_preparedquery =1;
	bbOnDebugLeaveScope();
}
void _database_mariadb_TMySQLResultSet_clear(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"clear",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 911, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_cleanup((struct database_mariadb_TMySQLResultSet_obj*)o);
	struct BBDebugStm __stmt_1 = {0xe5a06d34a6f7fcd0, 913, 0};
	bbOnDebugEnterStm(&__stmt_1);
	(&database_mariadb_TMySQLResultSet)->super->m_clear((struct database_core_TQueryResultSet_obj*)o);
	bbOnDebugLeaveScope();
}
void _database_mariadb_TMySQLResultSet_reset(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"reset",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 917, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_clear((struct database_mariadb_TMySQLResultSet_obj*)o);
	bbOnDebugLeaveScope();
}
void _database_mariadb_TMySQLResultSet_free(struct database_mariadb_TMySQLResultSet_obj* o){
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	struct BBDebugScope_1 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"free",
		{
			{
				BBDEBUGDECL_LOCAL,
				"Self",
				":TMySQLResultSet",
				.var_address=&o
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 921, 0};
	bbOnDebugEnterStm(&__stmt_0);
	((struct database_mariadb_TMySQLResultSet_obj*)bbNullObjectTest((BBObject*)o));
	((struct database_mariadb_TMySQLResultSet_obj*)o)->clas->m_clear((struct database_mariadb_TMySQLResultSet_obj*)o);
	bbOnDebugLeaveScope();
}
struct BBDebugScope_24 database_mariadb_TMySQLResultSet_scope ={
	BBDEBUGSCOPE_USERTYPE,
	"TMySQLResultSet",
	{
		{
			BBDEBUGDECL_FIELD,
			"resultHandle",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_resulthandle)
		},
		{
			BBDEBUGDECL_FIELD,
			"row",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_row)
		},
		{
			BBDEBUGDECL_FIELD,
			"stmtHandle",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_stmthandle)
		},
		{
			BBDEBUGDECL_FIELD,
			"metaHandle",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_metahandle)
		},
		{
			BBDEBUGDECL_FIELD,
			"preparedQuery",
			"i",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_preparedquery)
		},
		{
			BBDEBUGDECL_FIELD,
			"_rowsAffected",
			"i",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset__rowsaffected)
		},
		{
			BBDEBUGDECL_FIELD,
			"parameterBindings",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_parameterbindings)
		},
		{
			BBDEBUGDECL_FIELD,
			"selectBindings",
			"*b",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_selectbindings)
		},
		{
			BBDEBUGDECL_FIELD,
			"mySQLFields",
			"[]:TMySQLField",
			.field_offset=offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_mysqlfields)
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"New",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_New
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"Create",
			"(:TDBConnection,$):TQueryResultSet",
			.func_ptr=(BBFuncPtr)&database_mariadb_TMySQLResultSet_Create_TTQueryResultSet_TTDBConnectionS
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"executeQuery",
			"($)i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_executeQuery_S
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"prepare",
			"($)i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_prepare_S
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"execute",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_execute
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"initRecord",
			"(i)",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_initRecord_i
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"firstRow",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_firstRow
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"nextRow",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_nextRow
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"lastInsertedId",
			"()l",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_lastInsertedId
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"rowsAffected",
			"()i",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_rowsAffected
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"dbTypeFromNative",
			"($,i,i)i",
			.func_ptr=(BBFuncPtr)&database_mariadb_TMySQLResultSet_dbTypeFromNative_i_Sii
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"cleanup",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_cleanup
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"clear",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_clear
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"reset",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_reset
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"free",
			"()",
			.func_ptr=(BBFuncPtr)&_database_mariadb_TMySQLResultSet_free
		},
		{
			BBDEBUGDECL_END
		}
	}
};
struct BBClass_database_mariadb_TMySQLResultSet database_mariadb_TMySQLResultSet={
	&database_core_TQueryResultSet,
	bbObjectFree,
	(BBDebugScope*)&database_mariadb_TMySQLResultSet_scope,
	sizeof(struct database_mariadb_TMySQLResultSet_obj),
	(void (*)(BBOBJECT))_database_mariadb_TMySQLResultSet_New,
	(void (*)(BBOBJECT))_database_mariadb_TMySQLResultSet_Delete,
	bbObjectToString,
	bbObjectCompare,
	bbObjectSendMessage,
	0,
	0,
	offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_mysqlfields) - offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_resulthandle) + sizeof(BBARRAY)
	,0
	,offsetof(struct database_mariadb_TMySQLResultSet_obj,_database_mariadb_tmysqlresultset_resulthandle)
	,database_mariadb_TMySQLResultSet_Create_TTQueryResultSet_TTDBConnectionS
	,_database_core_TQueryResultSet_Init_TTDBConnectionS
	,_database_core_TQueryResultSet_clearBindValues
	,_database_mariadb_TMySQLResultSet_clear
	,_database_mariadb_TMySQLResultSet_executeQuery_S
	,_database_mariadb_TMySQLResultSet_prepare_S
	,_database_mariadb_TMySQLResultSet_execute
	,_database_mariadb_TMySQLResultSet_firstRow
	,_database_mariadb_TMySQLResultSet_nextRow
	,_database_mariadb_TMySQLResultSet_lastInsertedId
	,_database_mariadb_TMySQLResultSet_rowsAffected
	,database_mariadb_TMySQLResultSet_dbTypeFromNative_i_Sii
	,_database_core_TQueryResultSet_rowRecord
	,_database_core_TQueryResultSet_dataValue_i
	,_database_core_TQueryResultSet_rowIndex
	,_database_core_TQueryResultSet_setRowIndex_i
	,_database_core_TQueryResultSet_isActive
	,_database_core_TQueryResultSet_isValid
	,_database_core_TQueryResultSet_resetValues_i
	,_database_core_TQueryResultSet_resetBindCount
	,_database_core_TQueryResultSet_addBindValue_TTDBType
	,_database_core_TQueryResultSet_bindValue_iTTDBType
	,_database_mariadb_TMySQLResultSet_reset
	,_database_mariadb_TMySQLResultSet_free
	,_database_mariadb_TMySQLResultSet_initRecord_i
	,_database_mariadb_TMySQLResultSet_cleanup
};

static int __bb_database_mariadb_mariadb_inited = 0;
int __bb_database_mariadb_mariadb(){
	if (!__bb_database_mariadb_mariadb_inited) {
		__bb_database_mariadb_mariadb_inited = 1;
		__bb_brl_blitz_blitz();
		_bb_database_mariadb_common();
		bbObjectRegisterType((BBCLASS)&database_mariadb_TMariaDBDatabaseLoader);
		bbObjectRegisterType((BBCLASS)&database_mariadb_TDBMariaDB);
		bbObjectRegisterType((BBCLASS)&database_mariadb_TMySQLField);
		bbObjectRegisterType((BBCLASS)&database_mariadb_TMySQLResultSet);
		bbRegisterSource(0xe5a06d34a6f7fcd0, "c:/BlitzmaxNG/mod/database.mod/mariadb.mod/mariadb.bmx");
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_FUNCTION,
			"mariadb",
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xe5a06d34a6f7fcd0, 949, 0};
		bbOnDebugEnterStm(&__stmt_0);
		database_core_AddDatabaseLoader((struct database_core_TDatabaseLoader_obj*)((struct database_core_TDatabaseLoader_obj*)bbObjectDowncast((BBOBJECT)(struct database_mariadb_TMariaDBDatabaseLoader_obj*)bbObjectNew((BBClass *)&database_mariadb_TMariaDBDatabaseLoader),(BBClass*)&database_core_TDatabaseLoader)));
		bbOnDebugLeaveScope();
		return 0;
	}
	return 0;
}