Adding enclosures now treats type and length parameters as optional for Atom, but...
[zend.git] / tests / Zend / Db / Select / Db2Test.php
blob35bf7abe934e897cde0668ae52a7233f8ad056b1
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
15 * @category Zend
16 * @package Zend_Db
17 * @subpackage UnitTests
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id $
23 require_once 'Zend/Db/Select/TestCommon.php';
25 PHPUnit_Util_Filter::addFileToFilter(__FILE__);
27 /**
28 * @category Zend
29 * @package Zend_Db
30 * @subpackage UnitTests
31 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
32 * @license http://framework.zend.com/license/new-bsd New BSD License
33 * @group Zend_Db
34 * @group Zend_Db_Select
36 class Zend_Db_Select_Db2Test extends Zend_Db_Select_TestCommon
39 public function testSelectJoinCross()
41 $this->markTestSkipped($this->getDriver() . ' does not support CROSS JOIN');
44 /**
45 * ZF-5234: this test must be done on string field
47 protected function _selectColumnWithColonQuotedParameter ()
49 $product_name = $this->_db->quoteIdentifier('product_name');
51 $select = $this->_db->select()
52 ->from('zfproducts')
53 ->where($product_name . ' = ?', "as'as:x");
54 return $select;
57 /**
58 * ZF-2017: Test bind use of the Zend_Db_Select class.
59 * @group ZF-2017
61 public function testSelectQueryWithBinds()
63 $this->markTestSkipped($this->getDriver() . ' does not support named parameters');
66 public function getDriver()
68 return 'Db2';