Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 73 lines (52 sloc) 2.857 kb
d919b50 @beberlei DBAL-6 - Add support for BLOBs
beberlei authored
1 # Upgrade to 2.2
2
3 ## Doctrine\DBAL\Connection#insert and Doctrine\DBAL\Connnection#update
4
5 Both methods now accept an optional last parameter $types with binding types of the values passed.
7101ecd @beberlei Work a little bit on the setFetchMode()/traversable patch from damz
beberlei authored
6 This can potentially break child classes that have overwritten one of these methods.
7
8 ## Doctrine\DBAL\Connection#executeQuery
9
10 Doctrine\DBAL\Connection#executeQuery() got a new last parameter "QueryCacheProfile $qcp"
11
12 ## Doctrine\DBAL\Driver\Statement split
13
14 The Driver statement was split into a ResultStatement and the normal statement extending from it.
15 This seperates the configuration and the retrieval API from a statement.
b8033f8 @beberlei [DBAL-203] SQLServerPlatform Refactoring
beberlei authored
16
17 ## MsSql Platform/SchemaManager renamed
18
19 The MsSqlPlatform was renamed to SQLServerPlatform, the MsSqlSchemaManager was renamed
20 to SQLServerSchemaManager.
21
22 ## Cleanup SQLServer Platform version mess
23
24 DBAL 2.1 and before were actually only compatible to SQL Server 2008, not earlier versions.
25 Still other parts of the platform did use old features instead of newly introced datatypes
26 in SQL Server 2005. Starting with DBAL 2.2 you can pick the Doctrine abstraction exactly
27 matching your SQL Server version.
28
29 The PDO SqlSrv driver now uses the new `SQLServer2008Platform` as default platform.
30 This platform uses new features of SQL Server as of version 2008. This also includes a switch
31 in the used fields for "text" and "blob" field types to:
32
33 "text" => "VARCHAR(MAX)"
34 "blob" => "VARBINARY(MAX)"
35
36 Additionally `SQLServerPlatform` in DBAL 2.1 and before used "DATE", "TIME" and "DATETIME2" for dates.
37 This types are only available since version 2008 and the introduction of an explicit
38 SQLServer 2008 platform makes this dependency explicit.
39
40 An `SQLServer2005Platform` was also introduced to differentiate the features between
41 versions 2003, earlier and 2005.
42
43 With this change the `SQLServerPlatform` now throws an exception for using limit queries
44 with an offset, since SQLServer 2003 and lower do not support this feature.
45
46 To use the old SQL Server Platform, because you are using SQL Server 2003 and below use
47 the following configuration code:
48
49 use Doctrine\DBAL\DriverManager;
50 use Doctrine\DBAL\Platforms\SQLServerPlatform;
51 use Doctrine\DBAL\Platforms\SQLServer2005Platform;
52
53 // You are using SQL Server 2003 or earlier
54 $conn = DriverManager::getConnection(array(
55 'driver' => 'pdo_sqlsrv',
56 'platform' => new SQLServerPlatform()
57 // .. additional parameters
58 ));
59
60 // You are using SQL Server 2005
61 $conn = DriverManager::getConnection(array(
62 'driver' => 'pdo_sqlsrv',
63 'platform' => new SQLServer2005Platform()
64 // .. additional parameters
65 ));
66
67 // You are using SQL Server 2008
68 $conn = DriverManager::getConnection(array(
69 'driver' => 'pdo_sqlsrv',
70 // 2008 is default platform
71 // .. additional parameters
72 ));
Something went wrong with that request. Please try again.