Commit graph

220 commits

Author SHA1 Message Date
nate
57e53775ff Automatically unescaping binary data in DboPostgres, and auto-handling boolean values, fixes #5118
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7517 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 04:21:01 +00:00
nate
1fa9939965 Refactoring Cache key generation, fixing SQLite cache, and invalidating cache on database reconnect
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7455 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-12 21:08:51 +00:00
gwoo
1ba01ef786 fixes #5227, adodb fetch row
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7451 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-11 14:42:37 +00:00
nate
c917c611dc Adding Spanish-language error message detection to DboMssql, fixes #5195
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7426 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-03 14:12:08 +00:00
nate
185a832e22 Removing column length from unsupporting columns in DboPostgres::buildColumn(), fixes #4804
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7411 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 13:10:37 +00:00
nate
8284872b82 Adding schema scoping to table description queries in DboPostgres, fixes #5006
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7409 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 06:33:01 +00:00
TommyO
b6e9888753 Replaced all instances of ife() in /cake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7387 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 20:34:01 +00:00
nate
5c796f4dbe Disabling caching on SQLite table list queries, adding SQLite test, fixes #5174
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7385 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 19:18:48 +00:00
mark_story
3c1ebafa0a Modified dbo_mysql update() fixes issue with updateCounterCache on self join tables. updateCounterCache query optimized. Closes #4652, #5152
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7376 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 02:22:15 +00:00
mark_story
4267a4f631 Added patch from 'cavendish' releasing previous result resources in resultSet(). Closes #4801
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7374 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-29 23:29:26 +00:00
mark_story
8d2e4721e3 Added checks for empty string in integer columns. value() Now returns NULL. Closes #5141
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7366 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-27 02:49:02 +00:00
mark_story
d9bb166721 Added firebird transaction commands. Thanks to 'daniele.teti'. Closes #5130
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7351 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-22 23:22:17 +00:00
phishy
9cf8a77e88 added fetchResult() wrapper
fixed queryAssociation(), it was producing invalid queries


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7350 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-22 12:20:18 +00:00
phpnut
1c2b1ef8eb Fixes #5008, DBO Source fails on >= query fixes failing tests added in [7302]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7319 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:56:56 +00:00
gwoo
0fc7355e6b another small optimization from last fix
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7281 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 05:34:37 +00:00
gwoo
5e92674990 fixes #4995, call time pass by reference in dbo_mysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7275 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 23:07:42 +00:00
nate
376ee191cb Commenting fix in DboMssql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7274 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 21:13:10 +00:00
gwoo
e70f45e1d6 fixes #4987, unable to delete by adding version compare and setting useAlias in DboMysql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7268 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 17:24:16 +00:00
nate
f52706ea9a Fixing transaction statement and Italian-language error checking in MSSQL database driver, fixes #4074, fixes #4890
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7266 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 14:45:32 +00:00
phishy
c60b232ab4 fixed quoting bug in name()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7259 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 21:11:23 +00:00
gwoo
f2fd386217 fixes #4892 different users on oracle, fixes #4894 escaping field
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7258 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 20:30:51 +00:00
nate
3ce765358d Fixing boolean handling in DboPostgres, closes #4878
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7257 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 04:55:59 +00:00
gwoo
91d86b91a4 fixes #4832, lastinsert in postgres. test added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7247 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 15:59:27 +00:00
nate
ebe635a827 Correcting syntax error in DboAdodb, fixes #4965
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7226 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 13:03:25 +00:00
nate
df75a06756 Fixing coding standards violations in core, and adding misc tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7222 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 20:17:23 +00:00
gwoo
2b699435f0 initial commit for dbo hasResult. should lead to further refactoring
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7209 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-18 17:28:17 +00:00
DarkAngelBGE
e221e9fb61 forcing the db layer to make an WHERE field IS NULL when find statements are called with empty arrays, closes #4845
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7155 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 16:17:44 +00:00
nate
af16245ab0 Fixing persistent connection handling in Postgres driver, updating fixture with unique index name, removing support for deprecated 'connect' key in database drivers, closes #4773
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7097 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 02:26:40 +00:00
joelmoss
1b1a3d7a5a Reverting last change to DboMysqli, and we now use port config var as the socket if it is a string.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7093 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 19:00:11 +00:00
joelmoss
d14774324a Added support for specifying the socket for MySQLi connections. Fixes #4811
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7092 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 18:18:10 +00:00
nate
39feb3f7c1 Refactoring DboSource. Model array conditions must now have comparison operators on the left side, fixes misc bugs, updated core to reflect changes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7075 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 12:36:38 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
nate
7402680cc1 Misc code formatting and whitespace fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
nate
f2ea3c8bb0 Refactoring DboSource to use Model in order to properly quote values by column type, correcting serial integer schema generation in DboPostgres, fixes #4702, refactoring TreeBehavior to use DboSource::calculate(), fixes #4725, updating docblocks, fixing DboSource test to be database-agnostic, misc. whitespace fixes, updating DboSource test to reflect new quoting rules
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7015 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 19:05:37 +00:00
the_undefined
e8bd74946c Put IF EXISTS back in
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6987 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 14:14:16 +00:00
the_undefined
50a18a09c4 Added conditional table dropping on test case start
Removed if exists statement from mysql driver


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6986 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 14:12:01 +00:00
DarkAngelBGE
a625537c4e optimization, refs #3877, fixes #3415
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6969 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 20:31:42 +00:00
nate
b7fbf8f080 Refactoring database transaction handling, fixing Model test for SQLite, all tests now pass
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6931 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:19:08 +00:00
DarkAngelBGE
f26d9b388e adding numerical test case refs #4589,
adding tests for DbSource->length,
fixes #4150,
adding tests for DbSource->buildIndex(),
adding tests for DbSource->buildColumn(),
adding test for requestAction using a plugin,
adding DboSource->introspectType fixes #4224, refs #4589, 



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 09:22:42 +00:00
nate
6bed503b56 Refactoring schema handling for SQLite and Postgres drivers. Non-primary key indexes are now created properly. Fixed testing bugs in db drivers.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:42:36 +00:00
mark_story
f011839cfe Update dbo_adodb.php. Passes 452 tests in model.test
fixes #4133

Added test for dbo_adodb as well

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 00:20:24 +00:00
phishy
6c44d00642 Fixed #4206 - lastError now works
Fixed #4181 - model sequence name now respected
added constraint() method to enable/disable
added truncate() to aid in test suite integration
hacked name() to work with ACL


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6903 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:42:13 +00:00
joelmoss
3d251e4145 Replacing vendor() function with App::import()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6900 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:41:39 +00:00
gwoo
99874c60d9 fixes #4238, Mysqli working with the test suite.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6849 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 18:03:44 +00:00
nate
c0d86a76d3 Fixing MSSQL Driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 18:53:54 +00:00
nate
32ea41a90e Correcting MSSQL limit/distinct handling, correcting date/time handling, fixes #4352, fixes #1778
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6748 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-03 14:15:47 +00:00
nate
42083e0a1b Refactoring insertMulti() for DboSource and drivers, updating Model test for non-transactional db's
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6707 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-21 12:31:28 +00:00
nate
0793138c6c Fixing SELECT DISTINCT queries for SQL Server + misc schema fixes, closes #4352
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6693 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:27:58 +00:00
nate
3ff5bfa829 Fixing default value for float columns in Postgres, fixes #3963
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6564 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-13 03:06:14 +00:00