Ralf Becker
9a6b90e78f
1) enabled DB support additionaly for:
...
- Oracle via oci8 or odbc extension
- MsSql via odbc extension
2) added checks for the neccesary extension incl. loading them if they are not loaded by default: db extensions and session extension. This is now consitent wiht check_install.
3) sessions class tries now to load the php session extension and silently fallbacks to db-sessions
2005-02-25 07:45:37 +00:00
Ralf Becker
08285c7bdb
automaticaly lowercase column- and tablenames for oracle (as already done for MaxDB)
2005-02-07 16:56:19 +00:00
Ralf Becker
6ef1f7113c
killed a warning if no table-definition, as requested by Cornelius Weiss
2004-11-12 07:39:07 +00:00
Ralf Becker
f8ee85dc81
- optimiced db::row() to use the ADODB fetchmode (via db::next_record())
...
- new param strip for db::row() to strip off common column-prefixes
2004-11-07 14:33:24 +00:00
Ralf Becker
a4557c1191
added prepared statements in insert and update for DB's which support it (atm. only MaxDB). Atm this need to be switched on by a parameter, as I still have some problems, it off by default
2004-10-14 20:58:39 +00:00
Ralf Becker
ac501a1937
use replace for mysql only if the primary keys are included
2004-09-22 10:24:39 +00:00
Ralf Becker
c6e4fdac77
added some debug and error messages
2004-09-19 10:35:54 +00:00
Ralf Becker
355beade2a
using mysql's REPLACE syntax instead of doing first a select to determine if the column exists and then an update or insert accordingly
2004-09-18 15:18:48 +00:00
Ralf Becker
3a3e4810a8
fixed handling of:
...
- updates of blob column for MaxDB
- encoding of blob columns for all DB's
2004-09-18 14:56:18 +00:00
Ralf Becker
822506cec0
using native adodb functions for quote and db_addslashes:
...
- qstr() save's one extra call compared to the PEAR function quote()
- dont need substr( ,1,-1) for db_addslashes
2004-08-22 20:30:12 +00:00
Ralf Becker
1cabb62405
new schema_proc class seems to work now
2004-08-13 18:59:00 +00:00
reinerj
febeab4d8d
replace the crap
2004-08-09 13:46:03 +00:00
Ralf Becker
ef53586f0f
documentation update and added $not_null parameter to quote() to control if php null's are written as SQL NULL or not. Is used by column_data_implode to only write NULL in columns which allow to do so
2004-08-08 22:31:41 +00:00
Ralf Becker
7cfabeb7c5
writing unset php-variables and thouse set to NULL now as SQL NULL
2004-08-07 11:58:05 +00:00
Ralf Becker
0bd82f3ab8
a bugfix in select and some MaxDB stuff
2004-08-05 15:31:55 +00:00
Ralf Becker
5d5730d813
improved handling of schema-files on system startup or in setup
2004-08-04 15:33:42 +00:00
Ralf Becker
ff1cf940cc
moved special insert_id handling for postgres into ADOdb, added workaround for updates of text/LONG columns in MaxDB to db::update
2004-08-03 23:06:37 +00:00
Ralf Becker
c591c2c221
fixed / added mssql support for egw and fixed some other Windows probs on the way ;-)
...
- knowledgebase is not working: select distinct is not possible with text-columns
- fudforum is not working: is does not use ADOdb and has no own db-layer for mssql
- other apps seem to work, everthing needs through testing - incl. our "old" db's
2004-07-25 01:41:37 +00:00
Carsten Wolff
42142322b4
now that the old db-classes are gone, we can put function name_quote to use.
2004-07-22 08:22:52 +00:00
Ralf Becker
a81630aad0
removed old / non-adodb db-classes and -code
2004-07-04 18:46:54 +00:00
Ralf Becker
b40f691a78
fix to be able to use the new select, update, ... functions during eGW startup (eg. accounts-class)
2004-07-04 17:31:12 +00:00
Ralf Becker
150c36eab3
fixed typo (old varname) which caused problems in SiteMgr while editing categories
2004-06-21 10:25:14 +00:00
Ralf Becker
d6c38c6ced
1) table-definitions are shared now between all db-instances
...
2) some extensions for easier quoting of sql-queries: functions to construct and run a whole insert, update, delete or select query, plus a function (expression) to generate a whole quoted expression with brackets and different operators
see the inline-docu for how to use them of look at bookmarks/inc/class.so.inc.php
2004-05-31 16:32:22 +00:00
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