mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: Added Database::USE_ANSI_SQL to make it easier to write code that's compatible with both 2.3 and 2.4
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76509 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
28b04eaec8
commit
b2b7481f04
@ -6,6 +6,14 @@
|
||||
* @subpackage model
|
||||
*/
|
||||
abstract class Database extends Object {
|
||||
/**
|
||||
* This constant was added in SilverStripe 2.4 to indicate that SQL-queries
|
||||
* should now use ANSI-compatible syntax. The most notable affect of this
|
||||
* change is that table and field names should be escaped with double quotes
|
||||
* and not backticks
|
||||
*/
|
||||
const USE_ANSI_SQL = true;
|
||||
|
||||
/**
|
||||
* Connection object to the database.
|
||||
* @param resource
|
||||
|
Loading…
x
Reference in New Issue
Block a user