Adding explicitly instantiate of template class functions

v2.x_pg_PrepStmtBase_240714
René Cannaò 2 years ago
parent 6b2dcc6442
commit e0e8c125c5

@ -17,7 +17,8 @@ template void Base_Thread::ProcessAllMyDS_AfterPoll<MySQL_Thread>();
template void Base_Thread::ProcessAllMyDS_AfterPoll<PgSQL_Thread>();
template void Base_Thread::ProcessAllMyDS_BeforePoll<MySQL_Thread>();
template void Base_Thread::ProcessAllMyDS_BeforePoll<PgSQL_Thread>();
template void Base_Thread::register_session(MySQL_Thread*, MySQL_Session*, bool);
template void Base_Thread::register_session(PgSQL_Thread*, PgSQL_Session*, bool);
Base_Thread::Base_Thread() {
};

@ -3112,6 +3112,13 @@ bool admin_handler_command_load_or_save(char *query_no_space, unsigned int query
return true;
}
// Explicitly instantiate the required template class and member functions
template void ProxySQL_Admin::send_ok_msg_to_client<MySQL_Session*>(Client_Session<MySQL_Session*>&, char const*, int, char const*);
template void ProxySQL_Admin::send_ok_msg_to_client<PgSQL_Session*>(Client_Session<PgSQL_Session*>&, char const*, int, char const*);
template void ProxySQL_Admin::send_error_msg_to_client<MySQL_Session*>(Client_Session<MySQL_Session*>&, char const*, unsigned short);
template void ProxySQL_Admin::send_error_msg_to_client<PgSQL_Session*>(Client_Session<PgSQL_Session*>&, char const*, unsigned short);
template int ProxySQL_Admin::FlushDigestTableToDisk<(SERVER_TYPE)0>(SQLite3DB*);
void ProxySQL_Admin::flush_configdb() { // see #923
wrlock();
admindb->execute((char *)"DETACH DATABASE disk");

Loading…
Cancel
Save