Cameron
614711ff21
Database: Prevent gaps in PRIMARY index when using DUPLICATE_KEY_UPDATE with insert() method.
2019-02-25 18:51:49 -08:00
Cameron
25c9a44a87
Fix for db_FieldList();
2019-02-13 15:54:04 -08:00
Cameron
c45ed85c5c
db_Fetch() e_LEGACY_MODE permanently removed. Old plugins should use $sql->fetch('both'); if this is still required.
2019-02-13 10:31:28 -08:00
Cameron
c34f8b41f3
Mysql class optimization and minor fixes.
2019-02-11 15:40:10 -08:00
Cameron
4e9f47c8b4
PDO class optimization
2019-02-10 16:19:25 -08:00
Cameron
f735292e3f
More db class tweaks
2019-02-09 13:07:34 -08:00
Cameron
b471292a36
Removed globals from db_Write_log() method.
2019-02-09 12:47:54 -08:00
Achim Ennenbach
96a84a1e93
fixes an issue with pdoBind not being initialized properly
...
fixes an issue with update(), returning sometimes an object instead of
the number of updated records.
fixes an issue with delete(), returning sometimes an object instead of
the number of deleted records
2019-02-03 19:35:45 +01:00
Cameron
35ff23b55f
MySQL backup - disable 'databases' flag for a more flexible import.
2019-01-28 18:38:01 -08:00
Cameron
7e5fe2eaad
MySQL backup - automatically add '.gz' to the filename when gZip is enabled.
2019-01-28 18:24:11 -08:00
Cameron
6d75ea2145
Fixed mysql class backup method errors. Third-party Mysqldump class added and integrated.
2019-01-28 17:53:45 -08:00
Cameron
b19463b259
PHPDoc updates
2019-01-26 10:28:08 -08:00
Tijn Kuyper
1a40b80915
Make sure mysql_* functions are available, otherwise use PDO
2019-01-10 17:22:49 +01:00
Cameron
e44fc0c13a
Fixes issues with secondary database connections.
2019-01-05 14:37:12 -08:00
Cameron
519001a690
PHP 7.2 null fix courtesy of Miro.
2018-12-18 12:12:46 -08:00
Cameron
b5157e70cb
Fixes #3422 Installation issue with database names containing a hyphen.
2018-09-06 11:20:43 -07:00
Cameron
2bd651c630
Fixes #2593 , Fixes #1586 User-extended 'database' field options were not being saved.
2018-08-26 10:23:55 -07:00
Nick Liu
3407b717c6
Reduce reliance on global var $db_ConnectionID
...
When one of the 11 methods in e_db_mysql look for a PDO object in
e_db_mysql::$mySQLaccess, global $db_ConnectionID can be NULL in some
cases, so it's more reliable to get the singleton e_db_mysql and use the
e_db_mysql::$mySQLaccess from that singleton.
This change still allows global $db_ConnectionID to be used, but if
$db_ConnectionID is NULL, the singleton fallback is used.
Fixes : e107inc/e107-test#6
2018-07-20 05:24:55 -05:00
Achim Ennenbach
eeaa9b22a8
New method to check table indexes
2018-06-08 22:59:24 +02:00
Cameron
c7c3c49daf
Support for 'IGNORE' duplicate key on INSERT.
2018-05-09 11:13:05 -07:00
Achim Ennenbach
d01a97816f
refactoring toNumber() into e_parse class
2018-05-04 19:27:00 +02:00
Achim Ennenbach
2a1a6d4118
closes e107inc/e107#3113 parses a string into a db ready number format
...
value returned works also with floatval()
2018-05-01 23:29:50 +02:00
Lóna Lore
154087b367
Fix for PHP Catchable fatal error: Object of class PDO could not be converted to string
2017-12-16 11:59:35 +01:00
Cameron
a7b7801766
Fixes #2890 - sql insert() debug info using PDO.
2017-11-30 12:40:06 -08:00
Cameron
bed4336571
Issue #2078
2017-09-18 12:20:39 -07:00
Cameron
4a06e277b0
Issue #2643 MySQL Backup
2017-05-24 12:58:30 -07:00
Cameron
61e4582b85
MySQL server compatibility fix.
2017-04-28 11:07:37 -07:00
Cameron
6f348e1940
Downloads: Fix for drop-down category ordering.
2017-04-19 17:15:32 -07:00
Cameron
90673d2ae0
MySQL Class: New method selectTree();
...
Support for custom navigation depth.
Download-categories sitelink/nav function added.
2017-04-19 16:35:10 -07:00
Cameron
2dfd20c54b
MySQL Class: Corrects PHP Notice during install of RSS plugin and similar database schemes.
2017-04-19 09:49:15 -07:00
Cameron
d110d8d4e9
Support multiple database connections for the same mysql-user.
2017-03-31 10:51:21 -07:00
Cameron
361740f83c
Merge pull request #2420 from dimante/master
...
Database backup fix for PHP 7+
2017-02-12 09:28:10 -08:00
John Gates
5e91e5a909
Fix Database Backup php >=7.0
...
This will allow mysql backup to complete.
2017-02-12 11:24:24 -06:00
Cameron
37c18e822e
Admin-ui quick page navigation added. Plugin class fixes. (admin navigation of plugins)
2017-02-06 11:18:36 -08:00
Cameron
5fb4a09b1f
Plugin Manager fix.
2017-02-05 19:53:45 -08:00
Cameron
479cdd7d8f
e_plugin class optimized.
2017-02-04 12:49:44 -08:00
Cameron
20e9f97bb0
Optimized database connection time.
2017-02-04 11:50:14 -08:00
Cameron
241e8bec78
Issue #2194 - Possible Fix for incompatible SQL modes.
2017-01-11 13:30:57 -08:00
Cameron
7d43ed597b
BC mySQL Issue #2241
2017-01-06 19:30:34 -08:00
Jimmi08
8d5a36c24a
fix for #1917 - related to using port with mysql server
2016-10-12 17:09:28 +02:00
Cameron
2420c979f8
Fixes #1831 - MySQL alternate port fix.
2016-09-19 13:38:59 -07:00
Cameron
b4e1cccfa0
PHP Notice removal
2016-09-17 11:10:46 -07:00
Cameron
64b9cb9f2b
MySQL: Fix for DUPLICATE KEY UPDATE return values when NOT using PDO.
2016-08-17 15:23:33 -07:00
Cameron
ab5652e8ad
Issue #1788 - Correct MYSQL return results with PDO on CREATE TABLE commands etc. Fixes forum installation issues on PHP7.
2016-08-12 16:02:55 -07:00
Cameron
0348fab9bf
MySQL: Fix for insert with '_DUPLICATE_KEY_UPDATE'
2016-08-07 14:17:27 -07:00
Cameron
63026ef1c4
MySQL: Fix for return when using '_DUPLICATE_KEY_UPDATE'
2016-08-07 13:21:22 -07:00
Cameron
9030334c10
MySQL: Fix for null type detection.
2016-08-06 11:22:16 -07:00
Cameron
8a5e1bd63c
MySQL: PDO vs Non-PDO consistency fixes. Also new '_DUPLICATE_KEY_UPDATE' flag added to insert() method. When true and a duplicate unique key is found the matching record will automatically be updated.
2016-08-02 14:57:29 -07:00
Cameron
a33c752c86
Fix for PDO rowCount() value.
2016-08-01 12:50:48 -07:00
Cameron
17dc4687a5
Fixes #1768 - Support for port number in mysql-server during installation. ie. localhost:port
2016-07-09 10:55:27 -07:00