Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 450 lines (436 sloc) 15.43 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.5.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
 <name>DB_QueryTool</name>
 <channel>pear.php.net</channel>
 <summary>An OO-interface for easily retrieving and modifying data in a DB.</summary>
 <description>This package is an OO-abstraction to the SQL-Query language, it provides methods such
as setWhere, setOrder, setGroup, setJoin, etc. to easily build queries.
It also provides an easy to learn interface that interacts nicely with HTML-forms using
arrays that contain the column data, that shall be updated/added in a DB.
This package bases on an SQL-Builder which lets you easily build
SQL-Statements and execute them.
    
 </description>
 <lead>
  <name>Wolfram Kriesing</name>
  <user>cain</user>
  <email>wolfram@kriesing.de</email>
  <active>no</active>
 </lead>
 <lead>
  <name>Lorenzo Alberton</name>
  <user>quipo</user>
  <email>l.alberton@quipo.it</email>
  <active>yes</active>
 </lead>
 <date>2008-01-12</date>
 <time>11:45:51</time>
 <version>
  <release>1.1.1</release>
  <api>1.1.1</api>
 </version>
 <stability>
  <release>stable</release>
  <api>stable</api>
 </stability>
 <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
 <notes>* fixed bug #10073: bug with empty() and 0 in _localeSafeImplode()
* fixed Coding Standards
 </notes>
 <contents>
  <dir name="/">
   <dir name="docs">
    <dir name="examples">
     <file baseinstalldir="DB" name="example.php" role="doc" />
     <file baseinstalldir="DB" name="mysql.sql" role="doc" />
     <file baseinstalldir="DB" name="pgsql.sql" role="doc" />
    </dir> <!-- /docs/examples -->
   </dir> <!-- /docs -->
   <dir name="QueryTool">
    <dir name="Result">
     <file baseinstalldir="DB" name="Object.php" role="php" />
    </dir> <!-- /QueryTool/Result -->
    <file baseinstalldir="DB" name="EasyJoin.php" role="php" />
    <file baseinstalldir="DB" name="Query.php" role="php" />
    <file baseinstalldir="DB" name="Result.php" role="php" />
   </dir> <!-- /QueryTool -->
   <dir name="tests">
    <dir name="simpletest_tests">
     <file baseinstalldir="DB" name="all_tests.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_include.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testDbInstance.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testGet.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testGetAll.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testGetCount.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testGetQueryString.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testHaving.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testLimit.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_tests_get.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_tests_usage.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_testWhere.php" role="test" />
     <file baseinstalldir="DB" name="db_querytool_test_base.php" role="test" />
     <file baseinstalldir="DB" name="db_settings.php" role="test" />
     <file baseinstalldir="DB" name="index.php" role="test" />
     <file baseinstalldir="DB" name="readme.txt" role="test" />
     <file baseinstalldir="DB" name="simple_include.php" role="test" />
    </dir> <!-- /tests/simpletest_tests -->
    <file baseinstalldir="DB" name="Common.php" role="test" />
    <file baseinstalldir="DB" name="Get.php" role="test" />
    <file baseinstalldir="DB" name="GetAll.php" role="test" />
    <file baseinstalldir="DB" name="GetCount.php" role="test" />
    <file baseinstalldir="DB" name="GetQueryString.php" role="test" />
    <file baseinstalldir="DB" name="Having.php" role="test" />
    <file baseinstalldir="DB" name="index.php" role="test" />
    <file baseinstalldir="DB" name="Limit.php" role="test" />
    <file baseinstalldir="DB" name="SetDbInstance.php" role="test" />
    <file baseinstalldir="DB" name="sql.php" role="test" />
    <file baseinstalldir="DB" name="UnitTest.php" role="test" />
    <file baseinstalldir="DB" name="Where.php" role="test" />
   </dir> <!-- /tests -->
   <file baseinstalldir="DB" name="QueryTool.php" role="php" />
  </dir> <!-- / -->
 </contents>
 <dependencies>
  <required>
   <php>
    <min>4.0.0</min>
   </php>
   <pearinstaller>
    <min>1.4.0b1</min>
   </pearinstaller>
   <package>
    <name>DB</name>
    <channel>pear.php.net</channel>
   </package>
   <package>
    <name>Log</name>
    <channel>pear.php.net</channel>
    <min>1.7</min>
   </package>
  </required>
 </dependencies>
 <phprelease />
 <changelog>
  <release>
   <version>
    <release>1.1.1</release>
    <api>1.1.1</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2008-01-12</date>
   <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
   <notes>* fixed bug #10073: bug with empty() and 0 in _localeSafeImplode()
* fixed Coding Standards
   </notes>
  </release>
  <release>
   <version>
    <release>1.1.0</release>
    <api>1.1.0</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2007-01-27</date>
   <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
   <notes>* added getOne() method (request #7580)
* added support for NULL fields in remove() (request #8056)
* fixed bug #3842, using the addJoin/setJoin methods causes an &quot;invalid token&quot; error with ibase;
  the joined table columns aliases are now named in this format: &quot;t_tablename_fieldname&quot; instead of &quot;_tablename_fieldname&quot;.
  Only the ibase driver is affected by this change.
* custom implementation of implode() to circumvent locale handling of floats,
  which clashes with SQL standards
* added table and field name quoting (requests #4613, #5250, #7570, #9197)
* fixed bug #9734, an incorrect regexp adds extraneous table names to the fields,
  if the name of the field appears as a column name in the current table.
* phpdoc and CS fixes
* added new tests
* switched to package.xml v2

NB: This will probably be the last release of DB_QueryTool, which is deprecated
in favour of MDB_QueryTool.
        
   </notes>
  </release>
  <release>
   <version>
    <release>1.0.3</release>
    <api>1.0.3</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2006-05-01</date>
   <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
   <notes>* fixed DB_QueryTool_Result_Object::fetchRow() when the return type is
  a scalar value instead of an array (bug #7532)
        
   </notes>
  </release>
  <release>
   <version>
    <release>1.0.2</release>
    <api>1.0.2</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2006-01-26</date>
   <license uri="http://www.debian.org/misc/bsd.license">BSD</license>
   <notes>* changed license to BSD
* fixed bug with big integers being incorrectly trimmed
        
   </notes>
  </release>
  <release>
   <version>
    <release>1.0.1</release>
    <api>1.0.1</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2005-09-07</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* fixed req #3842: added support for INNER JOINs
* fixed bug #3902, now non-integer primaryCol are supported
* fixed bug #4189: update() quoted the PK even if the &quot;raw&quot; option was set
* fixed pass-by-reference error with PHP 5.1 (thanks to Dmitry Shirokov)
        
   </notes>
  </release>
  <release>
   <version>
    <release>1.0.0</release>
    <api>1.0.0</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2005-03-03</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* fixed bug #3290, getCount() method returns zero when using an offset
  (patch by kubo at isite dot co dot jp)
* strings lenghtier than the column max size are truncated
  to prevent db errors
* using setOrder() with setGroup()+setHaving() could cause a malformed query
* fully tested with MySQL, PostgreSQL and Firebird/Interbase
  (added a new testsuite using SimpleTest)
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.11.1</release>
    <api>0.11.1</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2004-10-18</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* allow multiple left|right join clauses.
  NB: getJoin($type) now returns
    array(
       $joinTable1 =&gt; $joinOnClause1,
       $joinTable2 =&gt; $joinOnClause2,
    )
* allow class usage without instanciating a db object
  (to use the class as a simple query builder)
* unset non-specific PEAR::DB options before calling connect()
  (bug #1614)
* allow reuse of existing connection (bug #2007),
  thanks to eln at gmx dot net
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.10.1</release>
    <api>0.10.1</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2004-05-05</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* on UPDATE, field names are no more prefixed by the table name
  (it didn&apos;t work with PostgreSQL)
* added an $options parameter to connect()
* fixed bug #284 (Log::factory() needs to return a reference)
* fixed bug #298 (reset() does not reset limit)
* fixed bug #322 (undefined var $autoConnect)
* changed useResult() method; now it accepts a $type parameter, use it to return
  &apos;array&apos; results or &apos;object&apos; results (thanks to Roman Dostovalov).
  Please note that BC is maintained, useResult(true) will default to
  useResult(&apos;array&apos;), and useResult(false) will default to useResult(&apos;none&apos;).
* fixed problems with useResult(true) and empty results
* when using useResult(true), if the user doesn&apos;t call getFirst() on the first
  iteration, the class does so automatically
* PHP 5 fixes
* fixes to the testsuite
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.8</release>
    <api>0.9.8</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-09-23</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* added new method getQueryString() which returns the rendered query
* added setDbInstance() which lets you supply an existing DB-instance to work with
  using this you dont need to pass a DSN to the constructor!
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.7</release>
    <api>0.9.7</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-09-15</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>* use Log 1.7 API
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.6</release>
    <api>0.9.6</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-09-12</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- bugfix in addMultiple()
- addWhereSearch now only prefixes known columns as it is supposed to be,
  otherwise it would also prefix aliases with the table name, which is bull...
- quirk in the addLeftJoin() method ... not nice, but v1.0 will be, unit tests pass but thats still not enough proof
- make setLimit also work to unset it
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.5</release>
    <api>0.9.5</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-06-17</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- bugfix when writing log files, times were wrong
- bugfix in EasyJoin, which added unnecessary conditions
- bugfix in building column alias which is at the end of the string
- bugfix in addMultiple() which didnt work without primaryCol
- bugfix in addHaving and unit test, thanks to Johannes Schaefer
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.4</release>
    <api>0.9.4</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-06-06</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- added set/getLimit(), which set the limit globally,
  getAll() and getCol() can still overwrite this temporarily
- added addOrder()
- added *Having() methods by Johannes Schaefer
- added log functionality
- added condition param to addWhereSearch()
- fix bug in building group clause for getCount()
- bug fix in building join
        
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.3</release>
    <api>0.9.3</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-03-11</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- new method getCol() which lets you retreive just one column
- getAll() takes an additional optional parameter, where you can define
  the method that should be used for firing the query
- update() does also consider the value of setWhere() when no primary column is given
  added a _buildUpdateQuery() for that too
- added umbrello-uml class diagram
- fixing some typos, esp. for making the useResult() work
- bugfix in update, use fully qualified table name (Uwe Dörl)
- bugfix in _buildSelectQuery, enclose column names by &quot;&quot;
  now Oracle should work and also reserved keywords can be used as column names (Uwe Dörl)
- some bugfixes and more CS issues
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.2</release>
    <api>0.9.2</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-02-09</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- now you can customize the sequence name
- testing on postgres and added example
- enhancing the constructor to take the error/log callbacks
- some cleaning up
   </notes>
  </release>
  <release>
   <version>
    <release>0.9.1</release>
    <api>0.9.1</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-01-29</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>maintanence release, fix a lot E_ALL issues and CS issues
   </notes>
  </release>
  <release>
   <version>
    <release>0.9</release>
    <api>0.9</api>
   </version>
   <stability>
    <release>stable</release>
    <api>stable</api>
   </stability>
   <date>2003-01-17</date>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>- initial release in PEAR
   </notes>
  </release>
 </changelog>
</package>
Something went wrong with that request. Please try again.