cvs: pear /MDB2/MDB2/Driver mssql.php

From: Date: Fri, 30 Sep 2005 16:29:47 +0000
Subject: cvs: pear /MDB2/MDB2/Driver mssql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35176@lists.php.net to get a copy of this message
davidc Fri Sep 30 12:29:47 2005 EDT Modified files: /pear/MDB2/MDB2/Driver mssql.php Log: Added comment http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mssql.php?r1=1.78&r2=1.79&ty=u Index: pear/MDB2/MDB2/Driver/mssql.php diff -u pear/MDB2/MDB2/Driver/mssql.php:1.78 pear/MDB2/MDB2/Driver/mssql.php:1.79 --- pear/MDB2/MDB2/Driver/mssql.php:1.78 Mon Sep 26 19:51:00 2005 +++ pear/MDB2/MDB2/Driver/mssql.php Fri Sep 30 12:29:46 2005 @@ -43,7 +43,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.78 2005/09/26 23:51:00 davidc Exp $ +// $Id: mssql.php,v 1.79 2005/09/30 16:29:46 davidc Exp $ // // {{{ Class MDB2_Driver_mssql /** @@ -393,7 +393,7 @@ // }}} // {{{ _checkSequence /** - * Checks wether there's a sequence that exists. + * Checks if there's a sequence that exists. * * @param string $seq_name The sequence name to verify. * @return bool $tableExists The value if the table exists or not @@ -454,11 +454,14 @@ } return $result; } - $value = $this->queryOne("SELECT @@IDENTITY", 'integer'); + + // TODO: Make sure that this works. + $value = $this->queryRow("SELECT @@IDENTITY", 'integer'); if (is_numeric($value)) { $query = "DELETE FROM $sequence_name WHERE ". $this->options['seqcol_name']." < $value"; $result = $this->_doQuery($query, true); + if (PEAR::isError($result)) { $this->warnings[] = 'nextID: could not delete previous sequence table values'; }

« previous php.pear.cvs (#35176) next »