Commit Graph

58 Commits

Author SHA1 Message Date
Klaus Leithoff
063e451437 postgres: fix for problem with db_backup/update -> no MetaColumns retrieved anymore: if tablenames are quoted, remove the quotes as the use of tablenames in MetaColumns is for comparsion of content of fields in postgres system tables; quoting tablenames breaks comparsion here. 2010-06-01 12:22:45 +00:00
Ralf Becker
cdd5ba5dc2 removed tests folder, as it is NOT used by EGroupware 2009-09-21 08:18:50 +00:00
Ralf Becker
74a41902b8 "quote all table or column names, to allow to use reserved words of dbms" 2009-08-19 10:20:01 +00:00
Ralf Becker
232252475f patch fixing many depricated functions (eg. posix regular expressions) and features, which fill up the error_log under php5.3 (and will no longer be available under php6).
Patch is mostly created by script in egroupware/doc/fix_depricated.php in separate commit.
I do NOT advice to apply this patch to a production system (it's commited to trunk!), as the automatic modified regular expressions have a good change to break something ...
2009-06-08 16:21:14 +00:00
Ralf Becker
3b0f5e5ab2 PDO compatibilty function fetchSingle() was renamed in PDO to
fetchColumn($column_num=0): now both are available in ADOdb, thought
fetchSingle is depricated and should no longer be used!
2009-03-25 09:03:36 +00:00
Ralf Becker
e2b84e8c32 dont try oids for new postgres versions 2008-05-30 07:08:19 +00:00
Ralf Becker
e7d9ca5532 "suppressed warning if ADORecordSet::fetchSingle() has nothing to fetch and docu" 2008-03-13 10:59:57 +00:00
Ralf Becker
97f63b43ff some compatibility stuff for ADOdb<->PDO 2008-03-09 14:22:02 +00:00
José Luis Gordo Romero
7ab746e386 [Oracle Support]
- Enable $noNullString in oci8 driver, this solves inserts blanks on NOT NULL columns that are not part of the 
primary key
- Fixes problems as group creation, and others
2007-10-21 07:53:22 +00:00
José Luis Gordo Romero
3081b0a05a ORA - Fixed schema creation (indexes, triggers and secuences):
Indexes: The solution of put the index name of the first columnt dont't
work because duplicates, create instead a hash of the large name (PHP 5
>= 5.1.2, PECL hash:1.1-1.5) with an fixed char at beginning (Oracle
objects names can't start with a number)

Secuences & triggers: create a a hash of the large name.
2007-10-18 04:29:16 +00:00
José Luis Gordo Romero
96ed4814ac OCI8 ADODB - Fix imported from adodb 5.02 (Control triggers and secuence names > 30 chars, oracle restriction) 2007-09-30 03:00:03 +00:00
Carsten Wolff
645750297f explicitly enable casts between text and bytea for transparent use by schema_proc 2007-09-27 22:06:58 +00:00
Ralf Becker
4b80391b71 "fix for sequenzes tables are depending on for postgres 8.x, thanks to Peter Eisentraut" 2007-06-25 15:57:19 +00:00
Ralf Becker
8f1f3f68cb "fix to detect if a table depends on a sequence to not try to drop it separate, thanks to Peter Eisentraut <peter_e-at-gmx.net>" 2007-06-24 08:36:20 +00:00
Ralf Becker
1e9b08d510 fixed problems pointed out by Janosch Machowinski <scotch-AT-tzi.de> 2007-05-25 12:18:00 +00:00
Ralf Becker
7f64e2d175 fix for bug #488: Postgres errors when upgrading to 1.4 beta 2007-05-12 16:58:47 +00:00
Ralf Becker
b826e5c2a3 extra code for changing defaults under mssql 2006-04-09 10:53:31 +00:00
Ralf Becker
ed687031a2 disabled it for security reasons 2006-03-08 22:13:00 +00:00
Ralf Becker
1c8ecb3992 enhanced _insertID function to deal with tables without oid's (default from 8.1+) 2005-11-19 20:13:06 +00:00
Ralf Becker
29ebabe0f5 quitent an other diagnostics 2005-11-14 08:32:59 +00:00
Ralf Becker
35a77b3c36 - quietent a warning if the connecting database does not exist
- cant use mysqli_real_escape_string without DB-connection, falling back to default quoting
2005-11-14 06:17:43 +00:00
Ralf Becker
40b35348e0 Get- and SetCharSet for mysql and mysqli 2005-11-07 13:37:21 +00:00
Ralf Becker
2477ebc7bb functions to get and set the charset 2005-11-04 18:38:29 +00:00
Régis Leroy
0f476f3e98 Bugfix: RowLock was not working with MySQL. ignore is a reserved word and could be empty. See as well fix on mysql driver for getOne with LIMIT and FOR UPDATE 2005-10-25 14:45:19 +00:00
Régis Leroy
9b4814ba81 bugfix: Select with LIMIT fail if FOR UPDATE is not after the LIMIT but before 2005-10-25 14:38:10 +00:00
Ralf Becker
7f835c1020 mysqli has a separete param for the port 2005-10-01 08:53:38 +00:00
Ralf Becker
d088c71ae0 mysqli should use the mysql datadictionary 2005-10-01 08:47:27 +00:00
Ralf Becker
93e3241b70 re-added to postgres fixes not (yet) contributed to JohnLim:
- updates to work around postgres error while upgrading a phpGW 0.9.14 install
- postgres fix (error in converting varchar to int if >= 100)
2005-09-26 10:28:28 +00:00
Ralf Becker
4e5cb1786e imported adodb 4.65 2005-09-26 10:12:10 +00:00
Ralf Becker
a4b3f4fecb added patch from raphaelpereira-AT-gmail.com to allow creation of the DB under Postgres again 2005-09-06 10:20:56 +00:00
Ralf Becker
4d498d47cb updates to work around postgres error while upgrading a phpGW 0.9.14 install 2005-02-10 15:15:29 +00:00
Ralf Becker
10864e96f8 fixed error with fulltext indexes (eg. in the wiki), when the default-type-type is set to InnoDB, which is eg. the default for some newer windows installs or mysql 4.1.x 2005-02-04 11:13:01 +00:00
Ralf Becker
3b2da86ce2 postgres fix (error in converting varchar to int if >= 100) 2004-11-21 22:40:21 +00:00
Ralf Becker
630c88d766 reworked installation/upgrade process to not use delta-updates any more, as we can now reliable read the schema back from our supported databases:
- makes update scripts a lot easier and saver
- updates are a lot faster now
==> only the needed update-functions get called
2004-10-23 15:00:44 +00:00
Ralf Becker
2740acc03e fixed the schema-retrival functions for MySql, Postges and MaxDB 2004-10-14 20:35:50 +00:00
Ralf Becker
85a946bc5f enabling prepared statements for MaxDB 2004-09-19 10:32:35 +00:00
Ralf Becker
28ed51f49f fix for bug [ 1027089 ] ALTER TABLE ... ADD COLUMN ... DEFAULT doesn't work
postgres cant add a column with a default in one go
2004-09-19 08:26:45 +00:00
Ralf Becker
7b6b6d5759 fixed mapping of I4 to INTEGER now, it was mediumint which is a 3-byte interger only 2004-08-30 15:06:05 +00:00
Ralf Becker
ec4bf09604 added MetaIndexes function for mssql 2004-08-17 08:21:09 +00:00
Ralf Becker
adf79e6d7e added code to drop not-depending sequences when droping a table, depending ones cant and dont need to be droped separatly 2004-08-15 19:52:49 +00:00
Ralf Becker
9a67dc3141 import ADOdb 4.52 2004-08-15 18:45:20 +00:00
Ralf Becker
ee3f5cafff added own MetaType, MetaColumns and MetaColumnNames functions for MaxDB to have better control over the column-types 2004-08-15 18:12:41 +00:00
Ralf Becker
38a2ea7768 added MetaPrimaryKeys for MaxDB 2004-08-15 16:19:46 +00:00
Ralf Becker
1cabb62405 new schema_proc class seems to work now 2004-08-13 18:59:00 +00:00
Ralf Becker
b4e2d56594 added the missing postgres functions - thought they are not fully testes yet 2004-08-11 23:22:25 +00:00
Ralf Becker
4dae67c9c0 got updates working again for MaxDB, MySql and MsSql (untested). Now I need to start working on postgres. 2004-08-09 21:20:08 +00:00
Ralf Becker
ecf1fd06eb MetaIndexes and _insert_id functions added 2004-08-03 23:04:29 +00:00
Ralf Becker
5f8de74a2a added table and colum as parameter to Insert_ID() to correctly retrive the id under postgres and MaxDB 2004-08-03 23:03:38 +00:00
Ralf Becker
2d11bcec04 re-added (to be able to make patches agains 4.51) the sapdb change 2004-08-02 08:34:09 +00:00
Ralf Becker
b3d517a98c imported version 4.51 of ADOdb 2004-08-02 08:30:47 +00:00