Commit Graph

301 Commits

Author SHA1 Message Date
Kirk Mayo
357482d6c9 BUG: open ticket 7813 fixing dobule quoting issue in getIndexSqlDefinition 2012-08-27 15:05:37 +12:00
Ingo Schommer
530c97f671 Added supportsTimezoneOverride() method 2012-07-06 11:36:07 +02:00
Ingo Schommer
e752144a6e Added Macports locations to README 2012-07-02 10:24:25 +03:00
Sam Minnee
05e706ea18 BUG: Fixed MSSQL index name generation for tables with \ in the name.
Right now the name of a table with a namespace will contain a '\' character.  The internal index name generated clashes with this, so we've dealt with it by turning the '\' into a '_'
2012-06-26 14:52:18 +12:00
Sam Minnee
22d53b036b BUG: Fixed index generation to meet new SS3 expectations.
In SS3, the column lists passed through for index specifications are now quoted.  The database adaptor needed to be updated to meet this change.
2012-06-26 14:35:59 +12:00
Sean Harvey
0465f1b1a2 MINOR Performance optimisation in MSSQLDatabase::nextRecord() by
building field meta-data only on construct of MSSQLQuery
2012-06-12 13:31:29 +12:00
Sean Harvey
a4c269bf62 BUGFIX Fixing date/datetime handling in MSSQLDatabase
Fixing the date type to actually be "date", and not "datetime" so
that values are returned as "Y-m-d" for dates, and not "Y-m-d H:i:s".

Additionally, fixing a case where using the mssql functions would
return strange datetime formats. We need the datetime field values
in Y-m-d H:i:s. To get this working, we need to inspect the field type
when retrieving rows from the database and re-format the datetime
value at this point. This is done in MSSQLQuery::nextRecord()
2012-06-12 12:57:53 +12:00
Sean Harvey
49625242c1 MINOR Updating README to include error message 2012-06-12 10:05:40 +12:00
Sean Harvey
84ec3a2014 BUGFIX Fixed undefined notice regression 2012-05-08 17:41:01 +12:00
Sean Harvey
f1daa29592 BUGFIX Fixing MSSQLDatabase to work with latest SQLQuery changes in SS3 2012-05-07 16:40:47 +12:00
Sean Harvey
05d24b0843 BUGFIX Ensure DateTime objects are handled correctly 2012-05-04 21:58:48 +12:00
Sean Harvey
30f017335b BUGFIX Fixing SS3 broken search, use simpler query syntax 2012-05-03 14:33:17 +12:00
Sean Harvey
731874772c BUGFIX Fixing broken SS3 query code in MSSQLDatabase 2012-05-03 12:01:50 +12:00
Sean Harvey
a872e30256 BUGFIX Fixing database to use prepareWhere instead which is renamed 2012-05-01 12:08:19 +12:00
Sean Harvey
cb01716d39 BUGFIX Fixing order by fields for SS 3.0 in MSSQLDatabase::sqlQueryToString() 2012-04-27 17:25:50 +12:00
Sean Harvey
c7ae517c99 BUGFIX Fixed support for SS 3.0 with SQLQuery changes in 9938b64cf6ed0e05583633f1b894f89bd1e9f71f 2012-04-27 17:17:55 +12:00
Sean Harvey
b6082a023e ENHANCEMENT Use CONTAINSTABLE for fulltext searches, as it provides better fuzzy search results. 2012-04-26 17:31:12 +12:00
Sean Harvey
375d440677 BUGFIX Ensure that values with unicode characters like macrons are saved
to the database correctly. Overload the prepStringForDB() method and
include an "N" prefix.
2012-03-21 12:03:11 +13:00
Sean Harvey
4ae94d286f MINOR Tidy 2012-03-05 18:31:04 +13:00
Sean Harvey
cdf1c475a5 MINOR Cleaned up question on connecting with non-default instance name 2012-03-05 18:28:39 +13:00
Sean Harvey
e4349f83a6 MINOR Updated README on setting the server without adding more freetds entries 2012-03-05 18:21:25 +13:00
Sean Harvey
2312b49b9c BUGFIX Fixes to searchEngine() to support SS 3.0 ORM changes 2011-12-17 12:43:09 +13:00
Sean Harvey
a9444a8313 MINOR Removed unused variables from MSSQLDatabase::alterTable() 2011-10-13 14:13:33 +13:00
Sean Harvey
6cbe886a33 BUGFIX Fixed case where DROP FULLTEXT INDEX failed because it was being called twice, unncessarily. Do it once when altering a table structure.
MINOR Cleanup of code in MSSQLDatabase
2011-10-13 14:12:58 +13:00
Sean Harvey
c1ba0fafc9 BUGFIX MSSQLDatabase::getIndexSqlDefinition() should check a primary key exists before trying to use an empty variable and causing dev/build failures 2011-10-13 13:57:04 +13:00
Ingo Schommer
4b933d7e73 ENHANCEMENT Optionally filtering by new File.ShowInSearch flag in MSSQLDatabase->searcnEngine() 2011-09-15 16:02:23 +02:00
Sean Harvey
00b81bbdd4 BUGFIX MSSQLDatabase::alterTableAlterColumn() creates ALTER COLUMN clauses twice in the same query for the same column unnecessarily 2011-06-09 13:56:55 +12:00
Ingo Schommer
b772956ce8 BUGFIX Allow omitting FROM clause in sqlQueryToString() 2011-05-19 11:36:14 +12:00
Ingo Schommer
6f5de764d2 API CHANGE Renamed transactions methods from endTransaction() to transactionEnd(), startTransaction() to transactionStart() to comply with new sapphire trunk API 2011-03-11 16:41:14 +13:00
Sean Harvey
e15e444acc MINOR added link to extension page on silverstripe.org 2011-02-23 11:03:26 +13:00
Sean Harvey
718de0b232 Fixed minor formatting issue 2011-02-23 11:02:31 +13:00
Sean Harvey
c8d1fbe03f MINOR Fixed formatting of troubleshooting section of README.md 2011-02-23 11:00:01 +13:00
Sean Harvey
ddd0794720 MINOR Migrated most of the content from http://doc.silverstripe.org/old/modules:mssql to README.md 2011-02-23 10:58:38 +13:00
Sean Harvey
3542d25c4c MINOR Added short intro to mssql README.md file 2011-02-23 10:37:41 +13:00
Geoff Munn
7ea6652e56 MINOR: MSSQL stub function created for Postgres-specific functionality 2011-01-12 02:05:32 +00:00
Sean Harvey
c104222019 MINOR Clean up code of MSSQLDatabase::addslashes() 2010-12-15 23:18:27 +00:00
Andreas Piening
bff9718dd6 MINOR: allow backslashes 2010-12-15 21:48:05 +00:00
Sean Harvey
8f3b255c5e ENHANCEMENT Implemented MSSQLDatabase::allDatabaseNames() and MSSQLDatabase::dropDatabaseByName() so that dev/tests/cleanupdb will work on this database 2010-11-04 22:06:29 +00:00
Sean Harvey
9e1cdc8cfa BUGFIX Ensure that Relevance field check in MSSQLDatabase::searchEngine() also checks for Relevance escaped in double quotes 2010-11-01 03:20:52 +00:00
Sean Harvey
7b6899b3f0 MINOR Clearer documentation on MSSQLDatabase::getPrimaryKey() 2010-10-20 03:21:54 +00:00
Sean Harvey
9a86a6d9a5 MINOR Update on compatibility of MSSQLAzureDatabase 2010-10-20 03:17:19 +00:00
Mateusz Uzdowski
058c29bf69 ENHANCEMENT: allow custom columns in search, honour the classesToSearch, join all objects with base class, so we can query ClassName 2010-10-20 00:52:44 +00:00
Andreas Piening
e83c14236c MINOR: fixed case of tableList(), MINOR: added getIdentityColumn() 2010-10-15 00:55:49 +00:00
Sean Harvey
247470ccc8 API CHANGE Removed MSSQLDatabase::getNextID() as this is deprecated
MINOR Removed commented out code
2010-10-15 00:25:29 +00:00
Sean Harvey
ecea643f76 API CHANGE Renamed EnumValuesFromConstraint() to enumValuesFromCheckClause() as it's more specific to what the method is actually doing, which is parsing a constraint clause 2010-10-14 22:36:55 +00:00
Sean Harvey
14cf1d243c ENHANCEMENT Performance improvements to MSSQLDatabase, mostly involves per-request caching of constraint check clauses since it's such an expensive query. Getting constraint names has been split out into a separate method, as it's a relatively cheap query to make without caching 2010-10-14 21:11:20 +00:00
Sean Harvey
ae1494c313 BUGFIX Renamed MSSQLQuery::destroy() renamed to destruct() so that it is called properly after the object is destroyed 2010-10-14 05:03:01 +00:00
Sean Harvey
35d04ac387 MINOR Tidied up comments, added is_resource() check on MSSQLQuery::seek() to be consistent with the other methods 2010-10-05 00:55:16 +00:00
Sean Harvey
d2082107b5 API CHANGE Re-enabled transaction support in MSSQLDatabase transaction methods. TransactionTest appears to pass on sqlsrv and mssql now 2010-10-02 03:36:04 +00:00
Sean Harvey
e8ba221024 MINOR Reverted r111461, as it's not specific to SQL Server, but a framework level issue. FulltextSearchable decorator should be used instead to decorate existing SiteTree for example 2010-10-02 01:59:20 +00:00