|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-17 07:03 UTC] yohgaki@php.net
-Status: Open
+Status: Not a bug
[2015-07-17 07:03 UTC] yohgaki@php.net
[2015-07-17 07:07 UTC] david dot vantyghem at free dot fr
[2015-07-17 07:21 UTC] mike@php.net
[2015-08-05 07:58 UTC] a at b dot c dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 13:00:01 2025 UTC |
Description: ------------ When a SQLite table contains - in its name, query sometimes show an error. The error disappears whit adding ' ' at each side of the table name. Test script: --------------- With error : $database_handle->query("SELECT * FROM software INNER JOIN software-compilations ON software-compilations.compilation = ".$compilation_key." AND software.key = software-compilations.software ORDER BY name"); Without error : $database_handle->query("SELECT * FROM software INNER JOIN 'software-compilations' ON 'software-compilations'.compilation = ".$compilation_key." AND software.key = 'software-compilations'.software ORDER BY name");