Commit Graph

108 Commits

Author SHA1 Message Date
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
Ralf Becker
bd4f019062 some more PostgreSQL stuff from ADOdb 5.11 2011-04-10 15:04:40 +00:00
Ralf Becker
38ef2706e3 switching accidently commited PostgreSQL query log off again 2011-03-20 12:57:56 +00:00
Ralf Becker
778d03772a fixed typo CAPABILITY_CAST_AS_VA(R)CHAR 2011-03-20 12:49:22 +00:00
Ralf Becker
ebbbf233cf new capability to CAST AS varchar 2011-03-18 14:18:24 +00:00
Ralf Becker
de903d8957 an other PostgreSQL compatibility problem: cast to varchar necessary 2010-10-28 08:47:52 +00:00
Ralf Becker
7f29cd8530 fix for postgreSQL bug reported by Anthony Messina (amessina-at-messinet.com): sync_contentid is varchar(60) and need explicit cast: added egw_db->to_int($expr) 2010-09-10 07:11:22 +00:00
Ralf Becker
83dae424e0 new method to abstract MySQL function unix_timestamp (convert db timestamp to integer) 2010-09-09 09:06:13 +00:00
Ralf Becker
95ac7e77be fix for PostgreSQL 8.3, using "::text ILIKE", hopefully that works in older versions too 2010-06-22 16:56:16 +00:00