Commit Graph

261 Commits

Author SHA1 Message Date
Florian HENRY
8274b49fc1 Avoid notice during PGSQL installation
$unescapeslashquot
2014-05-13 18:50:35 +02:00
Laurent Destailleur
9f795331f5 Merge remote-tracking branch 'origin/3.5' into develop
Conflicts:
	ChangeLog
	build/debian/changelog
	build/doxygen/dolibarr-doxygen.doxyfile
	build/exe/doliwamp/doliwamp.iss
	build/perl/virtualmin/dolibarr.pl
	build/rpm/dolibarr_fedora.spec
	build/rpm/dolibarr_generic.spec
	build/rpm/dolibarr_mandriva.spec
	build/rpm/dolibarr_opensuse.spec
	htdocs/compta/paiement_charge.php
	htdocs/compta/sociales/charges.php
	htdocs/core/db/mysql.class.php
	htdocs/filefunc.inc.php
	htdocs/societe/class/societe.class.php
2014-05-06 23:58:17 +02:00
Laurent Destailleur
7a452519e7 Try to fix [ bug #1363 ] Unable to update from 3.5.1 to 3.5.2 2014-05-06 22:00:54 +02:00
Laurent Destailleur
c2c0a9b4bb Merge pull request #1568 from GPCsolutions/closingtagremoval
Qual: Remove the closing PHP tag
2014-05-04 18:08:37 +02:00
Raphaël Doursenaud
f8f502d013 Removed closing php tag
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-05-03 18:18:44 +02:00
Marcos García de La Fuente
abfb8b2317 Corrected Database.interface doc 2014-05-03 13:27:24 +02:00
Marcos García de La Fuente
0d129617cb Corrected Database.interface::fetch_object doc 2014-05-03 13:24:42 +02:00
Raphaël Doursenaud
98120862f7 Qual: Moved duplicate method to base method 2014-04-23 12:15:18 +02:00
Raphaël Doursenaud
16ede7c52c Qual: Moved duplicate methods to base method 2014-04-23 11:12:06 +02:00
Raphaël Doursenaud
5cbb1dd96d Qual: Removed useless method
The method is already in the DoliDB base class
2014-04-23 11:07:00 +02:00
Laurent Destailleur
cafa61ef7d Fix: Use correct syntax of date into sql requests (with quotes) 2014-03-15 23:12:00 +01:00
Laurent Destailleur
104f2873da Qual: Remove code to fix dynamically bad code. 2014-03-15 22:30:40 +01:00
Raphaël Doursenaud
a23f6d6a85 Database: factorized lastqueryerror() 2014-03-15 08:41:46 +01:00
Raphaël Doursenaud
7df97b7cfb Database: factorized lasterror() 2014-03-15 08:41:46 +01:00
Raphaël Doursenaud
f894df1d9e Database: factorized lastquerry() 2014-03-15 08:41:46 +01:00
Raphaël Doursenaud
e4e78bdd3e Database: factorized getLabel() 2014-03-15 08:41:43 +01:00
Raphaël Doursenaud
3f6b175879 Database: factorized getVersionArray() 2014-03-15 06:40:13 +01:00
Raphaël Doursenaud
73d957f158 Database: factorized common properties 2014-03-15 06:38:52 +01:00
Raphaël Doursenaud
f91e2ec7b2 Database: factorized begin() 2014-03-15 06:17:12 +01:00
Raphaël Doursenaud
739a566156 Database: factorized lasterrno() 2014-03-15 06:07:46 +01:00
Raphaël Doursenaud
0ab6fcaaca Database: factorized idate() 2014-03-15 06:04:16 +01:00
Raphaël Doursenaud
64fbefdb7c Database: factorized ifsql() 2014-03-15 05:55:02 +01:00
Raphaël Doursenaud
eb86abff94 Database: factorized jdate() 2014-03-15 05:54:51 +01:00
Laurent Destailleur
bdb2b7a547 Merge remote-tracking branch 'origin/3.5' into develop
Conflicts:
	htdocs/projet/index.php
	test/phpunit/FunctionsTest.php
2014-03-13 09:20:05 +01:00
Marcos García de La Fuente
20262a0164 Fix bug #1295: Error when creating an agenda extrafield with a number as reference 2014-03-10 23:58:16 +01:00
Laurent Destailleur
32c81588b0 Fix: doxygen 2014-03-07 10:54:57 +01:00
Laurent Destailleur
774017672f Fix: Number of day calculation. Add PHPUnit case. 2014-03-05 20:52:27 +01:00
Laurent Destailleur
1790f905c9 Removed some code specific to databases and use instead correct abstract
method of drivers.
2014-02-25 18:25:17 +01:00
Laurent Destailleur
a797a5e665 Clean comment and make some implementations 2014-02-24 09:52:48 +01:00
Raphaël Doursenaud
0a74467296 Added FIXMEs and TODOs on all dummy methods in database drivers 2014-02-21 14:57:19 +01:00
Raphaël Doursenaud
501ffb12b3 Added dummy methods according to interface for Microsoft SQL and PostgreSQL
Please implement if you have the required knowledge
2014-02-21 14:52:21 +01:00
Raphaël Doursenaud
283fec164e Implemented rollback according to interface for Microsoft SQL and PostgreSQL 2014-02-21 14:40:10 +01:00
Raphaël Doursenaud
894ac6fdc0 Added missing method to mysqli class 2014-02-21 14:27:29 +01:00
Raphaël Doursenaud
ea14ca10cd Extracted mysql interface 2014-02-21 14:23:32 +01:00
Laurent Destailleur
80046a5310 Qual: Mutualize code 2014-02-06 20:40:01 +01:00
Laurent Destailleur
ef2f8ea67d Removed some FIXME 2013-12-15 14:26:27 +01:00
Laurent Destailleur
5b243abe4b Fix: Miscellaneous fixes 2013-11-16 12:00:08 +01:00
Raphaël Doursenaud
875f9d55c7 Fixed tinyint for PostgreSQL in a more generic way 2013-09-11 17:34:35 +02:00
Raphaël Doursenaud
5426db63ff Added an abstract DolibDB class 2013-09-10 12:29:55 +02:00
Raphaël Doursenaud
465d59ba82 Don't call non static class statically 2013-09-05 16:44:57 +02:00
Raphaël Doursenaud
0c0740cac7 Don't call non static class statically 2013-09-05 16:43:22 +02:00
Laurent Destailleur
696ad07871 LF 2013-06-26 16:45:42 +02:00
Laurent Destailleur
af4651f1a2 Merge remote-tracking branch 'origin/3.4' into develop
Conflicts:
	build/perl/virtualmin/dolibarr.pl
	htdocs/core/lib/files.lib.php
	htdocs/langs/en_US/projects.lang
	htdocs/langs/fr_FR/projects.lang
	htdocs/public/paybox/paymentko.php
	htdocs/public/paybox/paymentok.php
	htdocs/public/paypal/paymentko.php
	htdocs/public/paypal/paymentok.php
	htdocs/webservices/server_other.php
2013-06-25 23:22:00 +02:00
Laurent Destailleur
285ea8da3f More info into log 2013-06-25 15:47:59 +02:00
Raphaël Doursenaud
2f8954acb3 Added group_concat equivalent to PgSQL 2013-06-19 15:54:27 +02:00
Laurent Destailleur
a50cd7b698 Fix bug into script that fix CRLF into LF 2013-06-12 11:59:55 +02:00
Laurent Destailleur
c3f5e0c6ee New: Show version of client lib used by mysql drivers 2013-06-07 19:19:11 +02:00
fhenry
13ad88832c Fix bug in DDLCreateTable 2013-05-21 14:31:39 +02:00
Laurent Destailleur
8c064c4883 Fix: Import of contact/address not complete and not working with pgsql 2013-04-30 19:02:02 +02:00
BENKE Charles
701814ad19 Update mysqli.class.php 2013-03-29 21:19:22 +01:00
BENKE Charles
d5a1f64e76 Update mysql.class.php
some other problems about DDLCreateTable, other field setting not actived
2013-03-29 02:09:19 +01:00
Laurent Destailleur
b694451ab2 Use engine instead of type 2013-03-26 17:45:07 +01:00
BENKE Charles
2c56a1c8dc Update mysql.class.php
Create Table 'type' not supported on recent mysql databases, need to use 'engine' instead
2013-03-26 16:49:02 +01:00
Laurent Destailleur
de6d40237d Fix: No syntax error when when want no limit 2013-03-05 13:28:31 +01:00
Laurent Destailleur
2dc4b91521 New: Function plimit of databases drivers accept -1 as value (it means
default value set into conf->liste_limit).
2013-02-25 12:51:38 +01:00
eldy
3d80a6ebfc Fix: Enhance pgsql driver 2013-02-21 21:04:20 +01:00
Laurent Destailleur
1b8634588f Fix: Missing property 2013-01-28 11:31:44 +01:00
Laurent Destailleur
8d206fdfb0 Prepare move to other licence. For the moment all answers for licence
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Regis Houssin
b838895db9 Fix: change for a neutral email 2012-12-30 15:13:49 +01:00
fhenry
b3d21a4320 Fix [ bug #634 ] Install faild on PostGreSQL
Fix  [ bug #631 ] Index Creation failed on fresh install with PostgreSQL
2012-12-08 17:01:07 +01:00
fhenry
1d6bc23f4d - Uniformize Extrafield deletion for adherent,user,product,societe by
using commonobject method
 - Add convertion of tms timestamp special case in mysql for pgsql
2012-12-08 14:23:52 +01:00
Laurent Destailleur
fd22705de4 New: Log handler can now manage indent on database transactions 2012-12-02 15:20:45 +01:00
Regis Houssin
2240dd4ac6 Fix: missing tinyint 2012-11-11 15:12:42 +01:00
Regis Houssin
b952a7f9bf Fix: convert line delimiters (use the last eclipse version) 2012-10-28 13:57:21 +01:00
Laurent Destailleur
cbff238cbd New: Support property "required" for extra fields. 2012-10-25 16:23:58 +02:00
fhenry
597ba3e6fc [ task #581 ] Implement function DDLInfoTable for PostgreSQL db class 2012-10-24 11:37:00 +02:00
Regis Houssin
df1e4a401a Fix: convert line delimiters
Info: the last Eclipse version fix this problem
2012-10-13 11:42:58 +02:00
Laurent Destailleur
8b4886073c Fix: Removed the FIXME. This is supported by the pgsql driver. 2012-10-09 12:03:39 +02:00
Laurent Destailleur
9eb21c3d9f Fix: Minot miscellanous fix 2012-09-03 10:17:58 +02:00
Regis Houssin
d2ae90f938 Fix: strict mode everywhere 2012-09-02 22:48:52 +02:00
Marcos García
5a73c32f46 Migrated ClassName to __construct() function
Changed $DB to $db
lower-cased "Class"
2012-07-30 17:17:33 +02:00
Laurent Destailleur
b63505ff15 Better fix 2012-07-23 11:10:18 +02:00
Regis Houssin
a109d5f32b Fix: bug #467 2012-07-23 10:29:26 +02:00
Laurent Destailleur
68e619fb00 Fix: escape for create command 2012-07-22 21:50:08 +02:00
Laurent Destailleur
8080ee4565 Fix: dol_syslog at wrong place. 2012-07-22 16:57:15 +02:00
Laurent Destailleur
970d946e5b Fix: sql injection for create database 2012-07-22 16:53:32 +02:00
Laurent Destailleur
a87cefa64d Fix: pgsql 2012-05-13 17:38:04 +02:00
Laurent Destailleur
acef702c27 Fix: pgsql compatibility not complete.
New: Move convert sql functions as static.
New: Add phpunit tests for database drivers.
2012-05-13 14:30:11 +02:00
Laurent Destailleur
d60061f682 Fix: pagecode when using postgresql
Conflicts:
	htdocs/support/inc.php
2012-05-06 15:36:53 +02:00
Laurent Destailleur
8b07aa3623 Fix: log must be before request 2012-05-06 15:33:39 +02:00
Laurent Destailleur
29fdb33406 Fix: Removed warnings 2012-04-30 09:36:10 +02:00
Laurent Destailleur
7b5aedeb3e Fix: Var can't be static 2012-04-28 18:04:55 +02:00
Laurent Destailleur
8ea079ed96 New: Prepare change to allow usage of print sheet for any purpose (not
only
memeber module).
Qual: Remove duplicate declaration of version.
2012-04-28 16:37:58 +02:00
Regis Houssin
aae57a9f98 Fix: remove deprecated method 2012-03-21 02:24:09 +01:00
Regis Houssin
52a8216e3e Fix: avoid php E_STRICT errors and compatibility with php 5.4 2012-03-21 02:12:44 +01:00
Laurent Destailleur
db396ed67c Doxygen 2012-02-24 11:23:52 +01:00
Laurent Destailleur
c0221f6950 Fix: convert mysql to pgsql fails sometimes 2012-02-19 13:11:35 +01:00
Laurent Destailleur
a500033b10 New: Add postgresql function to resynchronize sequences 2012-02-19 03:21:10 +01:00
Laurent Destailleur
dd766cbb79 Fix: Use current errno into log. 2012-02-19 02:07:13 +01:00
Laurent Destailleur
56f7196aa2 Qual: Normalize function name 2012-02-15 13:55:00 +01:00
Laurent Destailleur
8bcdfc8897 New: Add an error message when transactions are not closed. 2012-02-10 16:37:41 +01:00
Laurent Destailleur
1e4efb9e16 Fix: Save error only if it's not error to say there is error. 2012-02-09 21:19:03 +01:00
Laurent Destailleur
c2c8d1be3e Doxygen 2012-01-28 17:22:02 +01:00
Laurent Destailleur
429ba54e3e Work on debian package 2012-01-28 16:04:48 +01:00
Laurent Destailleur
ed22c802cd More POO 2012-01-21 14:19:28 +01:00
Laurent Destailleur
427d099e87 Fix: error management of pgconnect
Doxygen
2012-01-06 14:51:09 +01:00
Regis Houssin
45482bd80f Fix: remove the default pgsql database name 2012-01-06 10:31:53 +01:00
Regis Houssin
33049e9f19 [bug #270] PostgreSQL backend try to connect throught TCP socket for
local database
2012-01-06 09:31:02 +01:00
Laurent Destailleur
2ac5f4e550 Doxygen 2012-01-04 14:35:41 +01:00
Laurent Destailleur
ccfced2aff Work on sqlite driver 2012-01-02 03:02:45 +01:00
Laurent Destailleur
6f63c5ecff Work on PDO Sqlite driver 2012-01-02 02:46:12 +01:00
Laurent Destailleur
fce53afce4 Work on POO optimize 2011-12-21 19:34:16 +01:00
Laurent Destailleur
5e1fa4fef5 New: Start to work on sqlite driver 2011-12-19 23:32:24 +01:00
Laurent Destailleur
19f7dceaf8 More POO 2011-12-19 21:07:55 +01:00
Laurent Destailleur
4877e2474c Qual: Uniformize code 2011-12-19 11:57:09 +01:00
Laurent Destailleur
ba12c25eec Fix: Replacement of adodb is ok now.
Fix: Search criteria lost
2011-12-13 00:23:48 +01:00
Laurent Destailleur
de33a568cb Qual: All dolibarr code now use dol_xxx function to manage dates 2011-12-12 16:26:47 +01:00
Laurent Destailleur
56a0e26465 Fix: Removed tons of warnings 2011-12-01 17:09:01 +01:00
Laurent Destailleur
074939b4ff Security: A lot of security fixes 2011-11-02 20:17:55 +01:00
Regis Houssin
eca7ff31aa Fix: doxygen 2011-10-24 18:40:28 +02:00
Regis Houssin
dd963235cd Move db classes in /htdocs/core/db 2011-10-24 10:06:37 +02:00