Ralf Becker
b318f1e4f4
status value is in column 1 (2. column), also fixed not working fetchColumn
2015-07-14 10:44:12 +00:00
Ralf Becker
bba3fa804a
some database optimizing: changing columns with no user-input to CHARACTER SET ascii (instead of utf8), shorten indexes and add additional autoincrement columns where primary key contained varchars
2015-07-11 13:56:50 +00:00
Ralf Becker
9f450a8132
* PostgreSQL/Addressbook: fixed not displayed pictures
...
by backporting ADORecordSet_postgres64::_decode() from ADOdb 5.19
2014-06-25 15:43:20 +00:00
Ralf Becker
3996f8a936
* MySQL: got mysqli extension working and make it default for EGroupware, as mysql is now officially deprecated, existing installs need to be switched manually in header.inc.php or Setup >> Manage header
2013-05-26 09:32:41 +00:00
Ralf Becker
13bcf73178
fix for 5.4 PHP Strict Standards: Declaration of ADODB2_mysql::_CreateSuffix() should be compatible with ADODB_DataDict::_CreateSuffix
2012-07-20 16:30:26 +00:00
Ralf Becker
18d74430ea
* Backup/Addressbook: adding limited index-length to backed up schema and fix restore of old backups without (default to 32 on multicolumn indexes including text columns)
2012-04-12 08:04:35 +00:00
Ralf Becker
f676a23821
fixes for PHP 5.4 warnings and strict warnings, thought disabled E_STRICT for now, because of various strict warnings in working code, which could not be easy fixed in all areas (see comment in phpgwapi/inc/functions.inc.php)
2012-03-04 13:33:10 +00:00
Ralf Becker
524b5d081b
some more PostgreSQL stuff from ADOdb 5.11
2011-04-10 15:06:22 +00:00
Ralf Becker
18b818bd57
reverting accidently commit r34595
2011-04-10 15:05:47 +00:00
Ralf Becker
bd4f019062
some more PostgreSQL stuff from ADOdb 5.11
2011-04-10 15:04:40 +00:00
Ralf Becker
1e9695dbc9
allow to limit size of index by appending it in brackets after the column name, eg. "column(32)", which is already supported by ADOdb, by was broken by our fix to always quote names, to allow column names which are reserved words, eg. "timestamp" in phpfreechat
2010-09-15 13:27:26 +00:00
Ralf Becker
caf6d694c2
using qstr (quoting of strings) from ADOdb 5.11, it might fix problems reported by Anthony Messina
2010-09-11 07:47:40 +00:00
Hans-Jürgen Tappe
4325167239
Fix an invalid link definition in the adodb documentation.
2010-07-31 06:11:05 +00:00
Klaus Leithoff
2aa6baddcb
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:24:29 +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