N°1001 change constant with concatenation to attribute (to avoid crash in setup for older PHP versions)

SVN:trunk[5676]
This commit is contained in:
Pierre Goiffon
2018-04-17 08:14:45 +00:00
parent c485286114
commit f7817714a8
3 changed files with 20 additions and 18 deletions

View File

@@ -111,10 +111,12 @@ class CMDBSource
/**
* SQL charset & collation declaration for text columns
*
* Using an attribute instead of a constant to avoid crash in the setup for older PHP versions
*
* @see https://dev.mysql.com/doc/refman/5.7/en/charset-column.html
* @since 2.5 #1001 switch to utf8mb4
*/
const SQL_STRING_COLUMNS_CHARSET_DEFINITION = ' CHARACTER SET '.DEFAULT_CHARACTER_SET.' COLLATE '.DEFAULT_COLLATION;
public static $SQL_STRING_COLUMNS_CHARSET_DEFINITION = ' CHARACTER SET '.DEFAULT_CHARACTER_SET.' COLLATE '.DEFAULT_COLLATION;
protected static $m_sDBHost;
protected static $m_sDBUser;