Commit Graph

116 Commits

Author SHA1 Message Date
Ralf Becker
9f1b92aa1d fix due to caching and reusing of connection not correctly set $this->Type == "mysql" 2015-10-12 18:34:47 +00:00
Ralf Becker
51b60c5df6 no longer store ADOdb object in session, also ensures reevaluating environment-data or multiple hosts in connection-data 2015-10-07 19:33:22 +00:00
Ralf Becker
50ed21bd7e fixed typo (wrong case) causing default DB capabilities to be returned and eg. giving an sql error when searching under MySQL in addressbook 2015-10-07 05:29:49 +00:00
Ralf Becker
a269120683 move @/enviroment support from class-variables to local ones, to re-evaluate them on each request, class vars are stored in session 2015-10-06 19:57:52 +00:00
Ralf Becker
1e54cfb117 use same egw_exception_db_connection instead of die, if no DB host set, so it can be cought 2015-10-06 16:59:54 +00:00
Ralf Becker
f724e47b2d cant use @-syntax with passwords, as they can start with an @ 2015-10-06 13:11:05 +00:00
Ralf Becker
047105fb41 allow to read db-config from environment, by using "@name" to reference to name from environment 2015-10-05 18:58:55 +00:00
Ralf Becker
82ca78d378 * Calendar: fix SQL error on storing events containing rfc822 email addresses with non-ascii characters eg. "Hugo Müller <hm@test.org>"
egw_cal_user.cal_user_id is now an md5 hash of lowercased raw email address (eg. "hm@test.org" in above example). Full attendee information is now stored in egw_cal_user.cal_user_attendee.
Will allow in a further step also to store attendee information for accounts to eg. answer with correct email to external organizers
2015-08-17 14:07:25 +00:00
Ralf Becker
08d75bc7ad * PostgreSQL/Filemanager: fix SQL error while downloading files with long name (probably other cases too) 2015-08-13 12:47:52 +00:00
Ralf Becker
970078e970 some more fine-tuning of Galera checks, backported persisten connection handling from ADOdb 5.x 2015-07-19 08:35:27 +00:00
Ralf Becker
e1ad625fca improved and now optional Galera cluster health check 2015-07-15 20:47:49 +00:00
Ralf Becker
f098f5c368 fix typo 2015-07-14 11:15:30 +00:00
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
3470f4d51c check Galera wsrep_local_state for node is not in state Synced, eg. Donor 2015-07-14 09:44:39 +00:00
Ralf Becker
cc15b6812a fix not being able to create new password, after r53051: allow to specify multiple ;-separated hosts for database 2015-07-07 12:41:11 +00:00
Ralf Becker
b27dbc617c allow to specify multiple ;-separated hosts for database, by default first one is used, on connection failure other ones are tried too 2015-07-06 11:15:14 +00:00
Ralf Becker
4b4c5e8a84 * PostgreSQL/Addressbook: fixed not working creating of new distribution lists
caused by egw_db::insert() using 0 or NULL in value of $where of primary key when trying to create the list, MySQL ignories these
2015-04-24 13:50:33 +00:00
Ralf Becker
3e47f37983 quote order column in backup and always quote "index" as it seems to be one of very little names not automatic recogniced in MySQL 2015-03-30 08:28:52 +00:00
Ralf Becker
8431629ed2 * All apps: nummeric custom-fields (float or new integer) sort nummeric in lists 2015-03-23 08:38:30 +00:00
Ralf Becker
46d58e8e43 fix egw_db::name_quote() to deal correctly with expressions like "table.column", to fix reported SQL error in projectmanager 2015-02-02 20:13:19 +00:00
Ralf Becker
79925c1c13 fix exception: nothing known about column "table.column", if "column" alone would work 2014-12-10 15:04:03 +00:00
Ralf Becker
2a4d7c382b * CalDAV: big calendars with more then 500 events in result-set were missing events 2014-11-10 14:19:43 +00:00
Ralf Becker
3af8b4806b insert/update timezones without sqlite extension 2014-10-07 21:04:58 +00:00
Ralf Becker
fbe9863055 * API/MySQL: automatic try to reconnect once, if server closed connection "MySQL server has gone away" 2014-09-22 10:23:17 +00:00
Ralf Becker
d2bc16c79b fix IDE warnings 2014-06-25 12:55:16 +00:00
Ralf Becker
2ee9082f2e * PostgreSQL: fixed not working installation (access to not yet existing table stalls transaction) 2014-06-25 12:43:11 +00:00
Ralf Becker
af9b8303d6 make egw_db::from_bool() static and use that to work around PHP 5.3 limitation of not making class scope available in closures 2014-06-24 07:25:35 +00:00
Ralf Becker
cf6ae6ee77 empty array on insert/update, store as NULL, or if not allowed whatever value NULL is casted to 2014-04-15 08:15:23 +00:00
Ralf Becker
327123a588 preparing to use egroupware with mbstring.func_overload=0 by using mb_(strlen|substr) where necessary and providing an implementation for mb_*, if mbstring is not available 2014-02-03 19:57:50 +00:00
Ralf Becker
e4ee379138 fix wrong sql produced by column_data_implode with param $use_key="VALUES" and numerical indexes in data 2013-11-11 08:21:54 +00:00
Ralf Becker
12e8a3bbcd iterator to run arbitrary callbacks on a select 2013-11-08 19:54:08 +00:00
Ralf Becker
287abb2b38 adding again error message and number from DB to exception thrown in case of SQL errors, also adding a new method to abstract MySQL group_contact for PostgreSQL 8.4+ 2013-06-28 10:50:42 +00:00
Ralf Becker
78efd4a604 * API: if re-connect to database fails for an existing session, stop execution with an exception, as otherwise eg. preferences can get lost 2013-06-20 13:30:58 +00:00
Ralf Becker
066ffc2c25 refactored account_id change script to use information from app-specific tables_current.inc.php instead of a fixed list 2013-06-12 16:57:44 +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
93710e09e1 * Setup/API: improved diagnostics about db connection problem and not installed EGroupware
- removed deprecated egw_db->Halt_On_Error handling in favor of just exceptions
- added a couple of exceptions extending egw_exception_db to be able to detect different problem areas
- fixed setup to use / catch exceptions
- new egw_exception_db_setup displays link to setup below exception message, to cope with no longer allowed html in exception messages
2013-03-05 10:50:43 +00:00
Ralf Becker
25ddf016f4 only truncate string if length given and <= 255, to not unnecessary truncate varchar(>255) as PostgreSQL uses text anyway and MySQL truncates itself silently (unless strict mode!) 2012-08-13 14:42:55 +00:00
Ralf Becker
d97111833c * PostgreSQL: fixed SQL error using egw_db::unix_timestamp(): No function matches the given name and argument types 2012-07-10 13:50:45 +00:00
Ralf Becker
09997309ab docu update 2012-06-29 09:05:22 +00:00
Ralf Becker
c3e0a2ab15 * Setup/Admin: restoring 10 rows per sql statement to speed up restore 2012-06-10 12:38:35 +00:00
Nathan Gray
2764e9529c Add function to get integer/byte filesize from human readable 2012-05-14 19:10:45 +00:00
Ralf Becker
d85cffb5e8 fixed since r38811 not working restore of backups 2012-04-12 13:25:27 +00:00
Ralf Becker
407570090d store already read table-defintions no longer in session (in ['egw_info']['apps'][]['table_defs']) but in a static variable only within the request:
--> keeps session smaller
--> php file with table-defintion get stored by accelerator anyway, so nothing to gain
--> if schema get's updated long running sessions like CalDAV not getting fatal errors
2012-04-05 07:05:22 +00:00
Ralf Becker
ea079a6803 fixing wiki rate code / mixed case column names for PostgreSQL 2012-03-08 06:20:21 +00:00
Ralf Becker
ebe229e885 always quote for postgreSQL, as this is the only way to support mixed case names 2012-03-07 21:33:59 +00:00
Ralf Becker
a5230cb614 casting boolean explicitly to string, as ADODB_postgres64::qstr() has an unwanted special handling for boolean types, causing eg. query in CalDAV for resources throw an invalid SQL exception under PostgreSQL 2011-10-25 07:49:54 +00:00
Klaus Leithoff
ac2279d933 * API: is_a compatibility vs. php5.3.8 resolving to instanceof operator for most common basic classes 2011-09-26 09:52:43 +00:00
Klaus Leithoff
050a1307cb * API: take care of INNODB and STRICT_TRANS_TABLES for recent mysql installations 2011-08-22 10:16:07 +00:00
Ralf Becker
da7b427480 output function_backtrace, if get_last_insert_id() fails and commented code to switch querylog on for a single instance/domain 2011-04-10 15:10:07 +00:00
Ralf Becker
18b818bd57 reverting accidently commit r34595 2011-04-10 15:05:47 +00:00