summaryrefslogtreecommitdiff
path: root/storage/connect/reldef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/reldef.cpp')
-rw-r--r--storage/connect/reldef.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/storage/connect/reldef.cpp b/storage/connect/reldef.cpp
index 8d5f96dce95..e469ae40f1f 100644
--- a/storage/connect/reldef.cpp
+++ b/storage/connect/reldef.cpp
@@ -49,13 +49,15 @@
#include "tabmul.h"
#include "ha_connect.h"
-extern "C" int trace;
-extern "C" USETEMP Use_Temp;
-
#if !defined(WIN32)
extern handlerton *connect_hton;
#endif // !WIN32
+/***********************************************************************/
+/* External function. */
+/***********************************************************************/
+USETEMP UseTemp(void);
+
/* --------------------------- Class RELDEF -------------------------- */
/***********************************************************************/
@@ -591,7 +593,7 @@ PTDB OEMDEF::GetTable(PGLOBAL g, MODE mode)
PTXF txfp = NULL;
PDOSDEF defp = (PDOSDEF)Pxdef;
bool map = defp->Mapped && mode != MODE_INSERT &&
- !(Use_Temp == TMP_FORCE &&
+ !(UseTemp() == TMP_FORCE &&
(mode == MODE_UPDATE || mode == MODE_DELETE));
int cmpr = defp->Compressed;