Commit graph

451 commits

Author SHA1 Message Date
José Lorenzo Rodríguez
665e560310 Checking for null values before converting to boolean 2011-01-04 17:00:10 -04:30
mark_story
de6eda964e Removing silent errors in PDO dbo's when a connection exception is created.
Adding the host param for mysql.
Adding a test for mysql missing the host param.
Fixes #1427
2011-01-03 23:34:22 -05:00
José Lorenzo Rodríguez
5a75d1d91a Adding boolean casts for sqlite 2011-01-02 01:26:57 -04:30
José Lorenzo Rodríguez
fe18e31b79 Changes to make sqlite recognize boolean columns declared as "boolean", so they can be casted to native php type 2011-01-01 22:11:28 -04:30
José Lorenzo Rodríguez
1d530db39b Changing a bit how postgres driver treats booleans so it correcty casts them 2011-01-01 22:09:22 -04:30
José Lorenzo Rodríguez
da152e0e82 Changes to make mysql cast boolean vaules to the native php boolean datatype 2011-01-01 22:07:27 -04:30
mark_story
4009b6b2c7 Fixing more @package tags, and removing duplicate tags in classes. 2010-12-24 14:33:41 -05:00
mark_story
ef77e60cb0 Removing @subpackage tags, moving contents of @subpackage into @package.
Removing duplicate cake.cake in @package tags.
Renaming cake.app -> app
2010-12-24 14:09:57 -05:00
José Lorenzo Rodríguez
c559b9c22d Merge remote branch 'origin/2.0' into 2.0
Conflicts:
	cake/console/templates/skel/config/database.php.default
	cake/libs/model/datasources/dbo/dbo_sqlite.php
2010-12-05 20:51:37 -04:30
Juan Basso
c52d5320c8 Replaced the *printf with i18n aliases by i18n aliases with params. 2010-12-04 23:37:13 -02:00
mark_story
8031d33d33 Fixing more E_STRICT notices and adding a type check to DboSource::dropSchema(). 2010-12-04 14:37:02 -05:00
mark_story
a6c5065e9c Fixing a few more E_STRICT errors in postgres test/class. 2010-12-04 14:31:11 -05:00
mark_story
18fb12c95c Removing & pass by ref operators as they aren't needed any more.
Fixing a bunch of E_STRICT errors.
2010-12-04 14:15:32 -05:00
José Lorenzo Rodríguez
66d0986cd4 Pepending table name to index generation to avoid name clashes
Finally, all tests using a Sqlite database pass
2010-12-03 15:25:26 -04:30
José Lorenzo Rodríguez
e167271568 Making more DboSlite tests pass 2010-12-03 14:41:39 -04:30
José Lorenzo Rodríguez
cdc4cb9e1e Implementing method in DboSqlite to avoid error while running the test suite 2010-12-02 00:20:08 -04:30
José Lorenzo Rodríguez
2e04c5260e Fixing some tests to make them run on sqlite 2010-12-02 00:19:43 -04:30
José Lorenzo Rodríguez
2e9283abd9 Fixing fixture loading for sqlite 2010-11-29 20:52:54 -04:30
José Lorenzo Rodríguez
a791687784 Adding try catch for pdo exception on DboSource::_execute 2010-11-28 23:50:18 -04:30
José Lorenzo Rodríguez
372123f15a Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass 2010-11-28 22:45:56 -04:30
José Lorenzo Rodríguez
492bcea85f mproving decribing process of tables in sqlite 2010-11-27 00:37:13 -04:30
José Lorenzo Rodríguez
41ee035d28 Starting to bring sqlite dbo up to date 2010-11-26 23:46:34 -04:30
José Lorenzo Rodríguez
40418de218 Freeing up some memory in dbos after the result set has been completly fetched.
Adding dbo_mysql and dbo_postgres to the AllDAtabase testsuite
2010-11-16 23:59:24 -04:30
José Lorenzo Rodríguez
00a3eda4d0 Fixing broken test because of change done in previous commit 2010-11-10 23:48:58 -04:30
José Lorenzo Rodríguez
47c6132b24 cleaning up some tests, adding missing parameters in DboSource to match declaration on DataSource 2010-11-09 01:25:05 -04:30
José Lorenzo Rodríguez
b3d8a619a3 Updating test for booleans in postgres 2010-10-26 21:46:29 -04:30
José Lorenzo Rodríguez
25c213e976 Preventing zero length of fields using prostgres 2010-10-25 20:25:07 -04:30
José Lorenzo Rodríguez
a6b6720717 Fixing bug in boolean conversion for postgres 2010-10-25 19:46:23 -04:30
José Lorenzo Rodríguez
49ed8ede8e Trucating tables in postgres now correctly resets the associated sequences 2010-10-25 19:45:46 -04:30
José Lorenzo Rodríguez
f00f4eae0f Implementing getClientEncoding using postgres 2010-10-24 20:02:11 -04:30
José Lorenzo Rodríguez
2ec9a49f17 Resolving yet more problems with booleans in postgres 2010-10-24 20:01:33 -04:30
José Lorenzo Rodríguez
1acb619e75 Implementing DboSource::insertMulti so it uses prepared statements, also changing internal uses of this method to reflect the new api, this brings as consequence a better abstracttion for datasources in model and fixtures, but breaks BC 2010-10-24 19:59:54 -04:30
José Lorenzo Rodríguez
139702e91c Moving methods from Dbo's to the parent class as PDO already abstract what they do 2010-10-21 20:48:26 -04:30
José Lorenzo Rodríguez
c7763b316e Fixing some boolean issues in DboPostgres 2010-10-21 20:34:11 -04:30
José Lorenzo Rodríguez
88289f071e Restarting sequences by default qhen calling DboSource::truncate(), removing option to drop the sequence as it does not match behavior from other dbos 2010-10-21 00:21:10 -04:30
José Lorenzo Rodríguez
2262844346 Implementing set encoding in DboPostgres 2010-10-21 00:01:36 -04:30
José Lorenzo Rodríguez
ba1eb62678 Calling right method in DboPostgres::trucante 2010-10-20 23:59:44 -04:30
José Lorenzo Rodríguez
09487f830c Preventing false positive in queries returning fields but havinf Count(*) inside them in DboPostgres 2010-10-20 23:29:07 -04:30
José Lorenzo Rodríguez
d0fc2fd171 Fixing describing of table columns for postgres 2010-10-19 00:48:08 -04:30
José Lorenzo Rodríguez
3f0c79f7f9 Fixing some problems in in DboPostgres::connect() 2010-10-19 00:15:32 -04:30
José Lorenzo Rodríguez
edd448f0b8 Implementing resultSet and fetchResult in DboPostgres 2010-10-18 00:38:48 -04:30
José Lorenzo Rodríguez
ad22bc31c7 Updating DboPosgres::describe() to use PDO 2010-10-18 00:23:19 -04:30
José Lorenzo Rodríguez
c1ca039582 Fixing typo in listSources 2010-10-18 00:11:24 -04:30
José Lorenzo Rodríguez
ab9c8904ad Implementing lastInsertId for postgres 2010-10-18 00:08:58 -04:30
José Lorenzo Rodríguez
5c87daf083 Implementing listSources for postgres 2010-10-18 00:08:34 -04:30
José Lorenzo Rodríguez
d9c9a32ff3 Refactoring DboSource::value() so postgres and mysq behavior is the same, updating test case 2010-10-17 23:38:55 -04:30
José Lorenzo Rodríguez
159776fc00 Refactoring possible common code to DboSource, now that PDO abstract disconnection from source 2010-10-17 23:37:56 -04:30
José Lorenzo Rodríguez
f3d3ee92f2 Implementing basic connection to postgres using PDO 2010-10-17 23:36:34 -04:30
José Lorenzo Rodríguez
bcc1417e5d Making database stats dependent of fullDebug
Leaving lastNumRows commented out until some bugs are solved
2010-10-17 18:36:35 -04:30
José Lorenzo Rodríguez
10646ba2ad Removing duplicate assignation of same object that didn't make much sense 2010-10-17 16:17:53 -04:30