[TYPO3-mvc] Does extbase do quote escaping in SQL?
Andriy Kushnarov
akushnarov at gmail.com
Fri Aug 14 09:49:04 CEST 2009
Dear all,
If I'm not wrong I get next error because of not escaped quotes.
I'm trying to insert some data to database and get:
Fatal error: Uncaught exception
'Tx_Extbase_Persistence_Storage_Exception_SqlError' with message '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 '' and
server host '%s' did not match!', 'Some Data',' at line 1' in
typo3_4.3\typo3\sysext\extbase\Classes\Persistence\Storage\Typo3DbBackend.php:661
Stack trace:
#0 typo3_4.3\typo3\sysext\extbase\Classes\Persistence\Storage\Typo3DbBackend.php(101):
Tx_Extbase_Persistence_Storage_Typo3DbBackend->checkSqlErrors()
#1 typo3_4.3\typo3\sysext\extbase\Classes\Persistence\Backend.php(487):
Tx_Extbase_Persistence_Storage_Typo3DbBackend->addRow('tx_l10nserver_d...',
Array)
#2 typo3_4.3\typo3\sysext\extbase\Classes\Persistence\Backend.php(345):
Tx_Extbase_Persistence_Backend->insertObject(Object(Tx_L10nServer_Domain_Model_Label),
Object(Tx_L10nServer_Domain_Model_Part), 'labels', A in
<b>typo3_4.3\typo3\sysext\extbase\Classes\Persistence\Storage\Typo3DbBackend.php</b>
on line <b>661</b><br />
--
Best Regards
Andriy Kushnarov
More information about the TYPO3-project-typo3v4mvc
mailing list