Commit Graph

37 Commits

Author SHA1 Message Date
Ralf Becker
151af07339 added the abillity to handle and quotes values as arrays (they generate a col IN (val1,val2, ...) instead a col=val 2004-05-31 09:25:35 +00:00
Ralf Becker
39b2c216fd fix for Bugs:
- mail from Thomas Hackl: newest cal upgrades (performance patch)
- wiki upgrade probs under postgesql
- [ 948279 ] upgrade postgresql 0.9.14-0.9.15
implemented index_names for pgsql db-type (there's no equivalent function in ADOdb)
2004-05-24 14:22:45 +00:00
Ralf Becker
7d5faa667a added concat function to abstract different concat operators or functions 2004-05-23 23:34:32 +00:00
Carsten Wolff
0bfa697995 added function name_quote, wich quotes table- and columnnames correctly 2004-05-02 17:18:38 +00:00
Carsten Wolff
20ee4f1d27 fixed rename_table() in schema_proc_pgsql, wich was relying on index_names() and therefore was broken with ADODB. 2004-04-25 22:58:37 +00:00
Ralf Becker
b7890a9ba4 fix for ADOdb's missing BlobEncode function for mysql, that caused a lot SQL-errors in email 2004-04-14 09:28:18 +00:00
Ralf Becker
5fc5cb207d small convinient extension to column_data_implode:
1. param $only === True: write only columns from the column-definitions
2. param $use_key==='VALUES' return "(key1,key2,...) VALUES (val1,val2,...)" for inserts
2004-04-12 07:19:24 +00:00
Carsten Wolff
d5026a9f75 make the use of adodb the default in the quote() and db_addslashes() functions, too 2004-04-11 09:03:56 +00:00
Ralf Becker
b69585b36f fix to create the postgres conection string in an extra variable 2004-04-03 12:58:43 +00:00
Ralf Becker
7cbfd65cde small fix for setup:
- useing allways $this->Type (not type) and $GLOBALS['phpgw']->ADOdb (not adodb)
- remembering if we use a privat Link_ID for disconnect
2004-04-02 08:15:18 +00:00
Ralf Becker
10118549f5 fix to allow multiple connections, even to different db-types (only creating a new ADOdb object if its to a different db) 2004-04-02 07:34:41 +00:00
Ralf Becker
8af7e93dac fixed bug on creation of db via setup (SQL error on setting up the grants) 2004-03-28 12:10:08 +00:00
Carsten Wolff
7f85671046 'blob'-columns need some special attention in the new quote()-function.
Note that there is no need to use BlobDecode() on read, since adodb does it automagically.
2004-03-17 12:42:24 +00:00
Ralf Becker
2238ea9dbb makeing ADOdb the configuration default: unless you explicitly set
$GLOBALS['phpgw_info']['server']['use_adodb'] = False;
in your header.inc.php, eGW uses ADOdb
2004-03-15 22:41:55 +00:00
Ralf Becker
1cc9c515aa fixed a typo in column_data_implode 2004-02-28 23:56:13 +00:00
Ralf Becker
35e9e09911 new function to do the complete type-dependent quoting of a value
ToDo: need to write some introduction to the new SQL-inserting save functions of the db-class (inline docs are already there)
2004-02-19 08:45:31 +00:00
Ralf Becker
652511bdb3 fixed metadata-function for adodb 2004-02-15 13:54:18 +00:00
Ralf Becker
9949311809 1) fixed bug with setup_demo (start_transaction did not call open before)
2) moved create_database code to the shared class: adodb can create the db now for mysql & pgsql
3) fixed the connect to be able to use unix-domain sockets for pgsql (hostname empty)
2004-02-08 11:19:52 +00:00
Miles Lott
e18438cdcc intval -> (int), remove unnecessary switch statement 2003-12-14 16:50:34 +00:00
shrykedude
f17337d3b7 Added support for specifying the database port number 2003-12-08 04:50:23 +00:00
Ralf Becker
f1cf865b12 fixed fatal error if no connection (db does not exist) 2003-11-02 15:19:14 +00:00
Ralf Becker
f2b0ca5d6d an other fix for ADOdb, set Record to empty, if a query returns no row 2003-10-21 18:08:22 +00:00
Ralf Becker
b26fa6246a fixed db::to_timestamp as the ADOdb function returns quotes too 2003-10-21 10:08:48 +00:00
Ralf Becker
a1bb219315 fix to automatically connect before calling db_addslashes, needed for setup->languages (with ADOdb enabled) 2003-10-20 19:02:32 +00:00
Ralf Becker
dbfd796382 fix to automatically connect before quering the tables, needed for setup->configuration (with ADOdb enabled) 2003-10-20 16:36:03 +00:00
Ralf Becker
10a51e644b get last_insert_id for pgsql working and fixed the copying of db-objects 2003-10-19 21:41:47 +00:00
Ralf Becker
32fa6bc9d0 added db_addslashes version for use without adodb 2003-10-19 19:36:50 +00:00
Ralf Becker
c7a9ba98e5 updated db-class to use ADOdb if one set $GLOBALS['phpgw_info']['server']['use_adodb'] = True; (eg. in your header.inc.php) or to be used as base-class for the other db-classes 2003-10-19 19:09:36 +00:00
Miles Lott
7d999cd13c Moved inclusion of extension classes after definition of extended class, for php5 (and 3 ;) ) 2003-10-16 10:27:34 +00:00
Ralf Becker
90faf20801 added some db-unspecific functions to deal with db-results-sets as associative arrays and form new querys from column/value arrays with automatical addslash/intval based on the column-type 2003-10-05 10:42:07 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
Miles Lott
56489e8d4f Using GLOBALS 2001-09-02 00:27:19 +00:00
seek3r
83a0af3424 trying to get windows support working 2001-06-20 08:36:55 +00:00
Miles Lott
1548a531b7 change from dbl to single ticks 2001-06-13 06:24:07 +00:00
seek3r
00b23411ef moved to define() for path vars. Also starting to hack sessions to be phpgw_info manager 2001-02-06 09:19:38 +00:00
seek3r
431f841cba switching to the new Object factory method 2001-01-11 10:04:28 +00:00
seek3r
e97ef24062 switching to the new Object factory method 2001-01-11 09:52:33 +00:00