Skip to content

Commit

Permalink
implements zendframework#326: add InsertIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 11, 2018
1 parent 6e88fc7 commit cdd5846
Show file tree
Hide file tree
Showing 2 changed files with 433 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Sql/InsertIgnore.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Zend\Db\Sql;

class InsertIgnore extends Insert
{
/**
* @var array Specification array
*/
protected $specifications = [
self::SPECIFICATION_INSERT => 'INSERT IGNORE INTO %1$s (%2$s) VALUES (%3$s)',
self::SPECIFICATION_SELECT => 'INSERT IGNORE INTO %1$s %2$s %3$s',
];
}
Loading

0 comments on commit cdd5846

Please sign in to comment.