Source for file DBOracle.php
Documentation is available at DBOracle.php
* $Id: DBOracle.php 718 2007-10-26 01:31:34Z heltem $
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information please see
* <http://propel.phpdb.org>.
* @author David Giffin <david@giffin.org> (Propel)
* @author Hans Lellelid <hans@xmpl.org> (Propel)
* @author Jon S. Stevens <jon@clearink.com> (Torque)
* @author Brett McLaughlin <bmclaugh@algx.net> (Torque)
* @author Bill Schneider <bschneider@vecna.com> (Torque)
* @author Daniel Rall <dlr@finemaltcoding.com> (Torque)
* @version $Revision: 718 $
* @package propel.adapter
* This method is used to ignore case.
* @param string $in The string to transform to upper case.
* @return string The upper case string.
return "UPPER(" . $in . ")";
* This method is used to ignore case.
* @param string $in The string whose case to ignore.
* @return string The string in a case that can be ignored.
return "UPPER(" . $in . ")";
* Returns SQL which concatenates the second string to the first.
* @param string String to concatenate.
* @param string String to append.
return "CONCAT($s1, $s2)";
* Returns SQL which extracts a substring.
* @param string String to extract from.
* @param int Offset to start from.
* @param int Number of characters to extract.
return "SUBSTR($s, $pos, $len)";
* Returns SQL which calculates the length (in chars) of a string.
* @param string String to calculate length of.
* @see DBAdapter::applyLimit()
public function applyLimit(&$sql, $offset, $limit)
. 'SELECT A.*, rownum AS PROPEL$ROWNUM FROM ( '
$sql .= ' B.PROPEL$ROWNUM > ' . $offset;
$sql .= ' AND B.PROPEL$ROWNUM <= '
$sql .= ' B.PROPEL$ROWNUM <= ' . $limit;
public function getId(PDO $con, $name = null)
throw new PropelException("Unable to fetch next sequence ID without sequence name.");
$stmt = $con->query("SELECT " . $name . ".nextval FROM dual");
$row = $stmt->fetch(PDO::FETCH_NUM);
public function random($seed= NULL)
return 'dbms_random.value';
|