Ralf Becker
586bce9c4d
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:29:19 +00:00
Ralf Becker
6f804b58e8
* All apps: nummeric custom-fields (float or new integer) sort nummeric in lists
2015-03-23 08:41:51 +00:00
Ralf Becker
e9bd3317a5
fix egw_db::name_quote() to deal correctly with expressions like "table.column", to fix reported SQL error in projectmanager
2015-02-03 13:18:59 +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
Ralf Becker
96db81c50c
dont use IN ( ), if there's only one value, it's slower for MySQL
2010-03-04 17:18:30 +00:00
Ralf Becker
5225fe81e1
automatic convert egw_time/DateTime objects when quoting values
2009-10-08 16:20:37 +00:00
Ralf Becker
cdb601da56
"Fix for bug #1885 : egw_db->row doesn't work as expected
...
reverted r25031, as it returns the first record with numeric indexes (it's anyway a depricated function)"
2009-07-18 12:33:52 +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
75f4a3920e
"Patch from Carsten Wolf:
...
Timesheet-Einträge mit Uhrzeit 0:00, die in der Winterzeit gemacht wurden,
werden in einem Union-Query, der in der Sommerzeit stattfindet, dem falschen
Tag zugeordnet. Vermutlich stimmt dies nur für den PostgreSQL query und ist
Dir deshalb bisher nicht aufgefallen.
Der Patch:
Ändert den PostgreSQL-spezifischen Teil des queries so um, dass er
Zeitzoneninformationen berücksichtigt."
2009-05-30 07:03:57 +00:00
Ralf Becker
53264e2c2b
"new static method to get an attribute of a column, eg. the comment"
2009-05-30 06:58:48 +00:00
Ralf Becker
aca05a32e3
using new check_load_extension function
2009-04-20 12:43:44 +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
92c5157b90
add grant host to db creation
2008-11-18 19:58:11 +00:00