Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #808 use of other DB as mysql (MSSQL)
Submitted: 2004-02-20 12:12 UTC
From: j dot forstner at a1 dot net Assigned: datenpunk
Status: Closed Package: DB_NestedSet
PHP Version: 4.3.4 OS: WIN
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 33 - 10 = ?

 
 [2004-02-20 12:12 UTC] j dot forstner at a1 dot net
Description: ------------ The SQL Statement generated at NestedSet.php line 2316 is not useable at other SQLSservers that mysql. generated Statement: INSERT INTO tbl_lock SET lockID='lck-4035ed80db9a2', lockTable='tbl_tree', lockStamp=1077276063 The correct Statement should look like this INSERT INTO tbl_lock (lockID, lockTable, lockStamp) VALUES('lck-4035ed80db9a2','tbl_tree', 1077276063); PHP 4.3.4 PEAR::DB_NestedSet 1.3.2 PEAR::DB 1.6.0 Reproduce code: --------------- $NeSe->setAttr(array('node_table'=>'tbl_tree','lock_table'=>'tbl_lock'); $values = array(); $values ['strna'] ="TOP"; $NeSe->createRootnode($values,false,true); Expected result: ---------------- No insert into the table and script-crash Error message Incorrect syntax near the keyword 'SET'. (severty 15) Actual result: -------------- Error message Incorrect syntax near the keyword 'SET'. (severty 15)

Comments

 [2004-02-20 12:17 UTC] datenpunk at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.