From:             w dot kaiser at fortune dot de
Operating system: XP Pro
PHP version:      4.4.4
PHP Bug Type:     MySQL related
Bug description:  The extended table-specification "database.table" creates 
errors

Description:
------------
The extended table-specification "database.table" im SQL-queries creates
errors, if the the "database"-name contains a "-" (dash);

The error is:

"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
'-olc.olc_configuration' at line 1"

A sample statement is "select count(*) from
db1021924-olc.olc_configuration"

A connect to the database "db1021924-olc" is possible with PHP, but
queries using the the extended table-specifications fail!

As we are using a "multi-db" approach in our application, and the ISP
dictates this type of database-name syntax, this is a real show-stopper!

A database-name like "db1021924_olc" (using the underscore instead of the
dash) works fine!



-- 
Edit bug report at http://bugs.php.net/?id=39657&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39657&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39657&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39657&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39657&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39657&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39657&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39657&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39657&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39657&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39657&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39657&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39657&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39657&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39657&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39657&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39657&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39657&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39657&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39657&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39657&r=mysqlcfg

Reply via email to