Commit e7b5b5c8 authored by unknown's avatar unknown
Browse files

sql_prepare.cc:

  VC6 can't handle initializing const in declaration


sql/sql_prepare.cc:
  VC6 can't handle initializing const in declaration
parent b50eb4cd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -118,9 +118,18 @@ class Prepared_statement: public Statement
  bool deallocate();

  /* Possible values of flags */
#if defined(_MSC_VER) && _MSC_VER < 1300
  static const int IS_IN_USE;
#else
  static const int IS_IN_USE= 1;
#endif
};

/* VC6 can't handle initializing in declaration */
#if defined(_MSC_VER) && _MSC_VER < 1300
const int Prepared_statement::IS_IN_USE= 1;
#endif

/******************************************************************************
  Implementation
******************************************************************************/