2007-10-14 01:45:08 +04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Coverage for Doctrine_Connection_Mssql_Exception</title>
|
|
|
|
<style type="text/css">
|
|
|
|
.covered{ background: green;}
|
|
|
|
.normal{ background: white;}
|
|
|
|
.red{ background: red;}
|
|
|
|
.orange{ background: #f90;}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body><h1>Coverage for Doctrine_Connection_Mssql_Exception</h1><p><a href="index.php">Back to coverage report</a></p><table>
|
|
|
|
<tr><td>1</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"><?php
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>2</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">/*
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>3</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * $Id: Exception.php 2963 2007-10-21 06:23:59Z Jonathan.Wage $
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>4</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>5</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>6</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>7</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>8</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>9</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>10</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>11</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>12</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>13</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>14</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>15</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>16</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>17</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * This software consists of voluntary contributions made by many individuals
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>18</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * and is licensed under the LGPL. For more information, see
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>19</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * <http://www.phpdoctrine.org>.
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>20</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>21</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered">Doctrine::autoload('Doctrine_Connection_Exception');
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>22</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">/**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>23</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * Doctrine_Connection_Mssql_Exception
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>24</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>25</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @package Doctrine
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>26</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @subpackage Connection
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>27</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>28</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>29</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @author Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>30</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @since 1.0
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>31</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @version $Revision: 2963 $
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>32</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @link www.phpdoctrine.org
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>33</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>34</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered">class Doctrine_Connection_Mssql_Exception extends Doctrine_Connection_Exception
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>35</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">{
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>36</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>37</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @var array $errorCodeMap an array that is used for determining portable
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>38</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * error code from a native database error code
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>39</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>40</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> protected static $errorCodeMap = array(
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>41</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 110 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>42</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 155 => Doctrine::ERR_NOSUCHFIELD,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>43</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 170 => Doctrine::ERR_SYNTAX,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>44</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 207 => Doctrine::ERR_NOSUCHFIELD,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>45</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 208 => Doctrine::ERR_NOSUCHTABLE,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>46</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 245 => Doctrine::ERR_INVALID_NUMBER,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>47</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 515 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>48</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 547 => Doctrine::ERR_CONSTRAINT,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>49</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 1913 => Doctrine::ERR_ALREADY_EXISTS,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>50</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 2627 => Doctrine::ERR_CONSTRAINT,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>51</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 2714 => Doctrine::ERR_ALREADY_EXISTS,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>52</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 3701 => Doctrine::ERR_NOSUCHTABLE,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>53</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> 8134 => Doctrine::ERR_DIVZERO,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>54</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> );
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>55</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>56</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>57</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * This method checks if native error code/message can be
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>58</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * converted into a portable code and then adds this
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>59</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * portable error code to $portableCode field
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>60</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>61</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @param array $errorInfo error info array
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>62</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @since 1.0
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>63</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @return boolean whether or not the error info processing was successfull
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>64</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * (the process is successfull if portable error code was found)
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>65</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>66</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> public function processErrorInfo(array $errorInfo)
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>67</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> {
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>68</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered"> $code = $errorInfo[1];
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>69</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered"> if (isset(self::$errorCodeMap[$code])) {
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>70</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered"> $this->portableCode = self::$errorCodeMap[$code];
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>71</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered"> return true;
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>72</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="orange"> }
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>73</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="red"> return false;
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>74</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="orange"> }
|
2007-10-21 20:12:20 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>75</td>
|
2007-10-14 01:45:08 +04:00
|
|
|
<td class="covered">}</td></tr>
|
|
|
|
</table></body></html>
|