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 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637
|
++++
News
++++
.. contents:: Contents:
:backlinks: none
SQLObject 2.2.1
===============
Released 10 May 2016.
* Fix a bug in sqlbuilder.CONCAT (inherit from SQLExpression).
SQLObject 2.2.0
===============
Released 8 May 2016.
Features & Interface
--------------------
* Add function col.use_microseconds(True/False). Default is to use
microseconds (True).
* For MSSQL use datetime2(6) and time(6) columns.
* Columns for ForeignKey are created using idType of the referenced
table.
Minor features
--------------
* Add sqlbuilder.CONCAT to generate concatenation command (either using
function CONCAT() or '||' operator).
* Minor refactoring to pave the way to Python 3 was merged from
`SQLObject 1.6.7`_.
* Document MSSQL server versions -- merged from `SQLObject 1.7.6`_.
Bugfixes
--------
* Fix a bug: mxDateTime doesn't support microseconds; %s in mxDateTime
format means ticks.
Tests
-----
* Speedup SQLite connections in tests -- merged from `SQLObject 1.7.6`_.
* Added new test helper setupCyclicClasses to setup classes with mutual
references.
SQLObject 2.1.2
===============
Released 15 Mar 2015.
* Using fdb adapter for Firebird was ported from `SQLObject 1.6.6`_.
SQLObject 2.1.1
===============
Released 10 Mar 2015.
* Minor fix in PostgresConnection was ported from `SQLObject 1.6.5`_.
SQLObject 2.1.0
===============
Released 6 Jan 2015.
Minor features
--------------
* In queries generated with SQLObject's tables columns are sorted in the
order they are declared in the table.
* In queries generated with sqlbuilder's Insert/Update, if values are
passed using dictionaries, columns are sorted alphabetically.
* Tables in SELECT...FROM clause are sorted alphabetically.
* MySQLConnection, PostgresConnection and SQLiteConnection have got
a new method listDatabases() that lists databases in the connection
and returns a list of names.
* MySQLConnection, PostgresConnection and SQLiteConnection have got
a new method listTables() that returns a list of table names in the database.
SQLObject 2.0.0
===============
Released 20 Dec 2014.
Features & Interface
--------------------
* DateTimeCol and TimeCol can read and write values with microseconds.
WARNING: microseconds are supported by MariaDB since version 5.3.0 and
by MySQL since version 5.6.4, and even these versions require special
handling: columns to store microseconds have to be declared with
precision 6: TIME(6), DATETIME(6), TIMESTAMP(6). SQLObject does the
right thing when creating a new database but existing databases have
to be changed: run something like
``ALTER TABLE name MODIFY COLUMN col TIME(6)`` for every column that
you want to store microseconds.
For MSSQL use datetime2(6) and time(6) columns. They are available
since MS SQL Server 2008.
WARNING: backward compatibility problem! Date/Time columns created
with microseconds cannot be read back from SQLite databases (and
perhaps other backends) with versions of SQLObject older than 1.7.
Minor features
--------------
* PostgresConnection, when used with fromDatabase=True, sets alternateID
for unique columns.
Development
-----------
* Development was switched from Subversion to git.
Documentation
-------------
* Old news were restored back to version 0.2.1.
* News.txt was split into 5 small files.
SQLObject 1.7.6
===============
* Minor refactoring to pave the way to Python 3 was merged from
`SQLObject 1.6.7`_.
* Document MSSQL server versions -- merged from `SQLObject 1.6.7`_.
* Speedup SQLite connections in tests -- merged from `SQLObject 1.6.7`_.
SQLObject 1.7.5
===============
Released 15 Mar 2015.
* Using fdb adapter for Firebird was ported from `SQLObject 1.6.6`_.
SQLObject 1.7.4
===============
Released 10 Mar 2015.
* Minor fix in PostgresConnection was ported from `SQLObject 1.6.5`_.
SQLObject 1.7.3
===============
Released 18 Dec 2014.
* Documentation updates and setup.py change were ported
from `SQLObject 1.5.6`_.
SQLObject 1.7.2
===============
Released 14 Dec 2014.
* Fix a bug: zero-pad microseconds on the right, not on the left; 0.0835
seconds means 83500 microseconds.
SQLObject 1.7.1
===============
Released 11 Dec 2014.
* Documentation updates and setuptools change were ported
from `SQLObject 1.5.5`_.
SQLObject 1.7.0
===============
Released 8 Dec 2014.
Features & Interface
--------------------
* Python 2.5 is no longer supported. The minimal supported version is
Python 2.6.
* DateTimeCol and TimeCol can read values with microseconds (created by
SQLObject 2.0) but do not write microseconds back.
Minor features
--------------
* Upgrade ez_setup to 2.2.
Bugfixes
--------
* Thre bugfixes were ported from `SQLObject 1.5.2`_, `SQLObject 1.5.3`_
and `SQLObject 1.5.4`_.
SQLObject 1.6.7
===============
* Minor refactoring to pave the way to Python 3: replace calls like
``unicode(data, encoding)`` with ``data.decode(encoding)``.
* Document MSSQL server versions.
* Minor fix in HashCol.
* Speedup SQLite connections in tests.
SQLObject 1.6.6
===============
Released 15 Mar 2015.
* Use fdb adapter for Firebird.
SQLObject 1.6.5
===============
Released 10 Mar 2015.
* Minor fix in PostgresConnection: close the cursor and connection
in _createOrDropDatabase even after an error.
SQLObject 1.6.4
===============
Released 18 Dec 2014.
* Documentation updates and setup.py change were ported
from `SQLObject 1.5.6`_.
SQLObject 1.6.3
===============
Released 11 Dec 2014.
* Documentation updates and setuptools change were ported
from `SQLObject 1.5.5`_.
SQLObject 1.6.2
===============
Released 8 Dec 2014.
* A bugfix was ported from `SQLObject 1.5.4`_.
SQLObject 1.6.1
===============
Released 26 Oct 2014.
* A bugfix was ported from `SQLObject 1.5.3`_.
SQLObject 1.6.0
===============
Released 15 May 2014.
Features & Interface
--------------------
* Python 2.4 is no longer supported. The minimal supported version is
Python 2.5.
* Support for Python 2.5 is declared obsolete and will be removed
in the next release.
Minor features
--------------
* Upgrade ez_setup to 1.4.2.
Bugfixes
--------
* A bugfix was ported from `SQLObject 1.5.2`_.
Development
-----------
* Development switched from Subvesion to git.
SQLObject 1.5.6
===============
Released 18 Dec 2014.
* Extend setup.py: include docs and tests into the egg.
SQLObject 1.5.5
===============
Released 11 Dec 2014.
* Documentation update: change URLs for development with git, add
Travis CI build status image.
* Extend sdist: include everything into source distribution.
SQLObject 1.5.4
===============
Released 8 Dec 2014.
* Fix a minor bug in MSSQLConnection: do not override callable server_version
with a non-callable.
SQLObject 1.5.3
===============
Released 26 Oct 2014.
* Allow unicode in .orderBy(u'-column').
Development
-----------
* Development switched from Subvesion to git.
SQLObject 1.5.2
===============
Released 13 Apr 2014.
* Adapt duplicate error message strings for SQLite 3.8.
SQLObject 1.5.1
===============
Released 15 Dec 2013.
* SQLiteConnection.close() now closes and reopens a connection
to in-memory database.
SQLObject 1.5.0
===============
Released 5 Oct 2013.
Features & Interface
--------------------
* Helpers for class Outer were changed to lookup columns in table's
declarations.
* Support for Python 2.4 is declared obsolete and will be removed
in the next release.
Minor features
--------------
* When a PostgresConnection raises an exception the instance has
code/error attributes copied from psycopg2's pgcode/pgerror attributes.
* Encode unicode enum values to str.
* Removed setDeprecationLevel from the list of public functions.
* A number of fixes for tests.
Bugfixes
--------
* A bug was fixed in DBConnection.close(); close() doesn't raise
an UnboundLocalError if connection pool is empty.
* Fixed parameters for pymssql.
Documentation
-------------
* GNU LGPL text was added as docs/LICENSE file.
* Old FSF address was changed to the new one.
SQLObject 1.4.1
===============
Released 26 May 2013.
* A few bugfixes were ported from `SQLObject 1.3.3`_.
SQLObject 1.4.0
===============
Released 18 May 2013.
Features & Interface
--------------------
* Support for PostgreSQL 8.1 is dropped. The minimal supported version of
PostgreSQL is 8.2 now.
* Optimization in PostgresConnection: use INSERT...RETURNING id
to get the autoincremented id in one query instead of two
(INSERT + SELECT id).
* Changed the way to get if the table has identity in MS SQL.
* NCHAR/NVARCHAR and N''-quoted strings for MS SQL.
SQLObject 1.3.3
===============
Released 26 May 2013.
* Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self,
fixed cache handling).
* Added an example of using SQLObject with web.py by Rhubarb Sin
to the links page.
SQLObject 1.3.2
===============
Released 20 Oct 2012.
* A number of bugfixes were ported from `SQLObject 1.2.4`_.
SQLObject 1.3.1
===============
Released 25 May 2012.
* Two bugfixes were ported from `SQLObject 1.2.3`_.
SQLObject 1.3.0
===============
Released 31 Mar 2012.
Features & Interface
--------------------
* PostgresConnection performs translation of exceptions to standard
SQLObject's hierarchy of exceptions.
* Major update of FirebirdConnection: introspection was completely
rewritten and extended; ``charset`` was renamed to ``dbEncoding``;
a longstanding bug was fixed - pass port to connect().
SQLObject 1.2.4
===============
Released 20 Oct 2012.
* Fixed a bug in sqlbuilder.Select.filter - removed comparison with
SQLTrueClause.
* Neil Muller fixed a number of tests.
SQLObject 1.2.3
===============
Released 25 May 2012.
* Fixed a minor bug in PostgreSQL introspection: VIEWs don't have
PRIMARY KEYs - use sqlmeta.idName as the key.
* Fixed a bug in cache handling while unpickling.
SQLObject 1.2.2
===============
Released 1 Mar 2012.
* A bugfix was ported from `SQLObject 1.1.5`_.
SQLObject 1.2.1
===============
Released 4 Dec 2011.
* A bugfix was ported from `SQLObject 1.1.4`_.
SQLObject 1.2.0
===============
Released 20 Nov 2011.
Features & Interface
--------------------
* Strings are treated specially in Select to allow
Select(['id, 'name'], where='value = 42'). Update allows a string in
WHERE.
* ForeignKey('Table', refColumn='refcol_id') to allow ForeignKey to
point to a non-id column; the referred column must be a unique integer
column.
* delColumn now accepts a ForeignKey's name without 'ID'.
* Support for PostgreSQL 7.* is dropped. The minimal supported version of
PostgreSQL is 8.1 now.
* Quoting rules changed for PostgreSQL: SQLObject uses E'' escape string
if the string contains characters escaped with backslash.
* A bug caused by psycopg2 recently added a new boolean not callable
autocommit attribute was fixed.
* sqlobject.__doc__ and main.__doc__ no longer contain version number.
Use sqlobject.version or version_info.
SQLObject 1.1.5
===============
Released 1 Mar 2012.
* A bug was fixed in SQLiteConnection - clear _threadPool on close().
SQLObject 1.1.4
===============
Released 4 Dec 2011.
* A bug was fixed in handling ``modulo`` operator - SQLite implements
only ``%``, MySQL - only ``MOD()``, PostgreSQL implements both.
SQLObject 1.1.3
===============
Released 30 Aug 2011.
* A bugfix was ported from `SQLObject 1.0.3`_.
SQLObject 1.1.2
===============
Released 8 Aug 2011.
* A bugfix was ported from `SQLObject 1.0.2`_.
SQLObject 1.1.1
===============
Released 1 Jul 2011.
* Parsing sqlobject.__doc__ for version number is declared obsolete. Use
sqlobject.version or version_info.
* Documented sqlmeta.dbEncoding and connection.dbEncoding.
SQLObject 1.1
=============
Released 20 Jun 2011.
Features & Interface
--------------------
* SelectResults (returned from .select()) is allowed in IN(column, list).
* A different workaround is used in SQLiteConnection to prevent PySQLite
from converting strings to unicode - in the case of a registered text
conversion function PySQLite silently converts empty strings to Nones;
now SQLObject uses text_factory instead and properly returns empty
strings.
* It is now possible to declare one encoding for all UnicodeCol's per
table (as sqlmeta.dbEncoding) or per connection (as connection.dbEncoding).
Default (if dbEncoding is found neither in column nor in table nor in
connection) is 'utf-8'.
Source code and internals
-------------------------
* Decorators @classmethod and @staticmethod are used everywhere.
* All 'mydict.has_key(name)' checks were replaced with 'name in mydict'.
SQLObject 1.0.3
===============
Released 30 Aug 2011.
* Fixed a bug with Postgres - add quotes in "SET client_encoding" query.
SQLObject 1.0.2
===============
Released 8 Aug 2011.
* A bug was fixed in SelectResults slicing that prevented to slice a
slice (my_results[:20][1:5]).
SQLObject 1.0.1
===============
Released 30 May 2011.
* A syntax incompatibility was fixed in SQLiteConnection that prevented
SQLObject to be used with Python 2.4.
SQLObject 1.0.0
===============
Released 28 Mar 2011.
Features & Interface
--------------------
* Major API change: DB URI parser was changed to use urllib.split*() and
unquote(). This means any username/password/path are allowed in DB
URIs if they are properly %-encoded, and DB URIs are automatically
unquoted.
* A new module ``__version__.py`` was added. New variables ``version``
(string) and ``version_info`` (5-tuple: major, minor, micro, release
level, serial) are imported into ``sqlobject`` namespace.
* In SQLite, id columns are made AUTOINCREMENT.
* Parameter ``backend`` in DB URI is no longer supported, use parameter
``driver``.
`Older news`__
.. __: News4.html
.. footer:: Get SQLObject at Sourceforge.net_. Fast, secure and Free Open Source software downloads
.. _Sourceforge.net: http://sourceforge.net/projects/sqlobject
|