e996b2c0cf
reverting 2 changes around sessions which break our installation
...
checking for the not existing (new) database runs into an invinit recursion
the checks not to use $_SESSION, if no session is active was added in an attempt to get SimpleSAMLphp discovery working, but seems unneccessary for what we currently use
2020-06-15 10:11:31 +02:00
4c131c1866
SAML/Shibboleth with multiple IdP or optional on regular login page
2020-06-10 15:19:24 +02:00
d1785a5340
MySQL 8.0 fails to create user as part of GRANT ALL statement
2019-07-10 09:19:00 +02:00
4b5890a501
do NOT used persistent connections, if they are disabled in php.ini
2019-05-29 11:28:46 +02:00
fb31d08aba
fix column_data_explode or update $col => array() gives SQL error
...
writing it now as NULL (or "" if column is NOT NULL)
2019-03-03 15:13:44 +01:00
08200bd99c
loading ADOdb through composer
2019-02-23 13:10:18 +01:00
1ed0fd898f
fix error: Call to undefined method calendar_ical::get_table_definitions()
2019-01-24 09:10:06 +01:00
bad2c9e571
fix SQL error for MariaDB 10.3 on inserting 4-byte utf-8 chars
...
enabling the replacement now uncoditional for MySQL/MariaDB
2019-01-14 12:08:34 +01:00
bb2557491d
* Api: truncate varchar for all DB types now, as MariaDB 10.3 also errors on to big content
2018-12-09 13:54:35 +01:00
e805a02ef3
fix not working sharing if primary DB node has failed
2018-12-03 18:29:05 +01:00
0f80e158ff
also set Error/Errno, if database is readonly
2018-10-28 09:29:25 +01:00
f1437d4ccb
fixing a couple more PHP Warning count(): Parameter must be an array or an object that implements Countable
2018-04-13 09:12:26 +02:00
c2c1bdb6ad
* EMail/Tracker/InfoLog: fix error converting mails by replacing 4-byte utf8 chars
...
MySQL and MariaDB before 10.1 need 4-byte utf8 chars replaced with our default utf8 charset
(MariaDB 10.1 does the replacement automatic, 10.0 cuts everything off behind and MySQL gives an error)
Changing charset to utf8mb4 requires schema update, shortening of some indexes and probably have negative impact on performace!
if (substr($this->Type, 0, 5) == 'mysql' && $this->ServerInfo['version'] < 10.1)
{
$value = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $value);
}
2018-03-12 14:02:13 +01:00
6221e69229
fix regexp to only match beginning of string
2017-03-09 16:42:50 +01:00
23ac04df8d
allow to switch whole database readonly, via setting "db_readonly" => true in header.inc.php
2017-03-09 12:08:00 +01:00
30cf772c4d
move ADOdb row_lock and rollback_lock methods to Db class, use Db::$tablealiases and use them for backup, also added a "backup_(starts|finished)" hook for apps
2016-10-13 17:54:58 +02:00
e82ce99537
fix SQL error happening in sync-colletion in TB caused by Db->Type == 'mysqli' and Db->group_connect returning false
2016-09-12 23:22:56 +02:00
ee468f40ff
try creating egroupware database for postgres with psql, as creating it through SQL seem not to work in Travis
2016-08-06 11:10:28 +02:00
b26e102ded
debugging db creation in Travis for postgres
2016-08-06 10:54:33 +02:00
ba18f3f594
allow eg. unit-tests to set/change schema used by db class: Db::set_table_definition()
2016-08-01 13:34:25 +02:00
6efd436a75
need to switch ONLY_FULL_GROUP_BY of for MySQL >= 5.7
2016-06-28 13:43:11 +02:00
f4dc9ebc3b
* MySQL/Ubuntu 16.04: switch off sql_mode ONLY_FULL_GROUP_BY enabled in MySQL 5.7+
2016-06-27 20:26:48 +02:00
139ee0dab1
no need to log connection retries and final connection failures are always thrown, fixes 5 connection failures log for creating new databases
2016-06-05 16:59:55 +02:00
2baf654e14
move all tables to new api and update api to 16.1
2016-04-02 19:55:08 +00:00
77c5102792
fixed more namespace issues found by doc/check_namespace.php I wrote and forgot about it ;-)
2016-03-21 21:21:40 +00:00
485416d5f1
replace create_function with performanter, because opcachable closure
2016-03-20 14:01:29 +00:00
a24c1121a2
move egw_time class to Api\DateTime
2016-03-05 11:14:01 +00:00
0637063660
fix namespaces in Db exceptions
2016-02-29 13:39:35 +00:00
1ab66dd811
move exceptions to new api structure, thought to catch an exception by its deprecated name, new exceptions have to extend deprecated ones
2016-02-28 13:43:06 +00:00
9bf4dd288e
moved egw_cache to Api\Cache
2016-02-28 09:38:36 +00:00
e3fb4142fc
need to cast to string, as ADOdb 5.20 would return NULL instead of '' for NULL, causing us to write that into NOT NULL columns
2016-02-22 13:31:44 +00:00
7f40ff5b17
work around broken ADORecordSet::GetAssoc() in ADOdb 5.20
2016-02-21 11:59:14 +00:00
2a056cca06
fix old class name in Galera health check
2016-02-21 11:07:46 +00:00
86955dfc95
work in progress: using ADOdb 5.20 and move db classes to new api directory
2016-02-20 20:27:17 +00:00