View Issue Details

IDProjectCategoryView StatusLast Update
0001786OXID eShop (all versions)6. ------ Setup -------public2010-04-28 14:06
ReporterMoehlis Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionno change required 
Summary0001786: setup cannot create database with special chars
Descriptionwhen trying to create database called "OXID_ESHOP_EE_4.3.0_26948_SOURCE" while processing shop setup, will result in: FEHLER: (Tabellen)Probleme mit folgenden SQL Befehlen: ( create database OXID_ESHOP_EE_4.3.0_26948_SOURCE ): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.3.0_26948_SOURCE' at line 1
Additional Informationsolution may be just to add ` to the databasename in oxsetup.php:779 (CE rev 26948)

is: if ( !$this->execSql( "create database ". $sDbName ) ) {
should: if ( !$this->execSql( "create database `". $sDbName ."`" ) ) {
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

birute_meilutyte

2010-04-28 13:38

reporter   ~0002596

Reminder sent to: Moehlis

Hello,

this is not a bug. mysql does not support "." symbol in database names at all, thats why you get this error. escaping database name would not help in this case. according mysql documentation, database and table names cannot contain “/”, “\”, “.”, or other characters that are not allowed in file names.

best regards,

birute_meilutyte

2010-04-28 14:06

reporter   ~0002597

not a bug. more information about recommendations for database names can be found in mysql documentation at
http://dev.mysql.com/doc/refman/5.0/en/identifiers.html