miqrogroove
759dfe6bb1
Allow for Integer Literals in PDO Database Driver
...
This should fix things like "LIMIT ?"
2018-06-21 11:42:43 -04:00
738644a006
Quit if database connection was lost during "e"
2018-06-11 03:56:19 +00:00
8584e09e12
Store the database credentials for reconnect
2018-06-11 03:45:45 +00:00
b02cdc8a7f
Merge remote-tracking branch 'upstream/develop' into quit-on-error
2018-06-11 03:15:59 +00:00
aa3f8ec09d
Force a database reconnection in the daemon to prevent lost connections
2018-06-10 22:04:09 +00:00
4874e589f1
New class function to fetch items
2018-06-07 06:03:12 +00:00
28f8beebfc
Workers can now be started exclusively from the daemon and other workers
2018-06-01 22:09:27 +00:00
Hypolite Petovan
93daf7883e
Merge branch 'master' into develop
...
- Updated new develop version label
- Incremented database build number
2018-06-01 07:30:04 -04:00
de609e49f0
Improved logging
2018-05-24 22:00:54 +00:00
f8230badba
Avoid problems with better variable naming
2018-05-24 21:46:57 +00:00
1bce39120d
Reconnect after the connection had been lost.
2018-05-24 21:19:59 +00:00
Hypolite Petovan
b0155fe37b
Remove obsolete DNS test from include/dba
2018-05-24 01:31:03 -04:00
87b5e26063
Do a hard exit when the SQL connection went down
2018-05-24 04:07:39 +00:00
Pierre Rudloff
3195d6e125
Add API tests
2018-05-10 19:12:00 +02:00
1ab965c944
Add Install Mode
...
- merged `friendica/develop` to `nupplaPhil/install_mode`
- content merged `mod/install.php` to `src/Class/`
2018-04-28 15:11:01 +02:00
a97ad9dc42
Add Install Mode (Part 2)
...
- Added constants to class `App`
- Added global App-Mode to `dba:connect()` instead parameter `$install`
2018-04-28 12:36:40 +02:00
d5b68cd146
Add a App-Mode with defined constants
...
- Normal Mode = 0
- Install Mode = 1
- Maintenance Mode = 2
Moved Install-Mode check to class `App`
Replaced all maintenance and install checks with $a->mode checks
2018-04-27 21:07:04 +02:00
Hypolite Petovan
a84477ed2d
Fix count() warning in include/dba.php
2018-04-23 00:00:06 -04:00
Hypolite Petovan
273dde508b
Add default value doc for options.cascade in dba::delete
2018-04-22 11:34:41 -04:00
Hypolite Petovan
0a026515bd
Add documentation for $options parameter in dba::delete
2018-04-22 11:33:20 -04:00
Hypolite Petovan
ba3f721524
Prevent side effect with cascade => false in dba::delete
2018-04-22 04:46:46 -04:00
Hypolite Petovan
18078ce7a4
Prevent infinite loop when a dbstructure_definition hook is orphan
...
- Add cascade option to dba::delete
- use cascade = false for orphan hook deletion
2018-04-21 20:34:07 -04:00
Marcus Müller
3761797e5f
Merge branch 'develop' into patch-1
2018-04-13 09:41:24 +02:00
Marcus Müller
89ba3b78ff
[BUGFIX] DB: Remove host DNS_PTR check
...
DNS_PTR checks fail on some domains and result in the return value `false`, even if the domain is valid and reachable.
2018-04-12 19:32:04 +02:00
Marcus Müller
e382dfcfbd
[BUGFIX] DB: Don't check DNS on IPs
...
Fixes https://github.com/friendica/friendica/issues/4786
2018-04-12 19:14:53 +02:00
Hypolite Petovan
881c7ccfc1
Add meaningful return value to dba::connect
...
- Move System::unavailable call to index
2018-03-18 05:15:14 -04:00
74f6dc5373
Renamed functions / each is replaced
2018-03-03 23:02:45 +00:00
194da423e0
An array with fieldnames as keys is important for the "insert" in the "update" function
2018-03-03 13:26:23 +00:00
5bda6c7f6d
We now accept array as condition parameters
2018-03-03 08:47:13 +00:00
1be5275eef
Some more performance measuring for database stuff
2018-03-02 13:37:49 +00:00
Hypolite Petovan
f020292408
Remove references to include/datetime
2018-02-03 20:47:37 -05:00
Hypolite Petovan
5e7285b9ba
Move Temporal::convert() to DateTimeFormat::convert()
2018-02-03 08:56:55 -05:00
Hypolite Petovan
8aff8a76eb
Add Temporal::utcNow()
2018-02-03 08:56:52 -05:00
Hypolite Petovan
dc366bf1f7
Refactor datetime_convert into Temporal::convert
...
- Changed parameter order to save space
- Refactor select_timezone into Temporal::getTimezoneSelect
- Refactor field_timezone into Temporal::getTimezoneField
2018-02-03 08:56:51 -05:00
Adam Magness
208a149a7b
Review sprintf
...
remove more sprintf calls
2018-01-23 21:59:16 -05:00
Adam Magness
f0725ae384
Hopefully all t()
...
hopefully the last of the t()
2018-01-22 18:03:26 -05:00
Hypolite Petovan
4cca8280b4
Fix undefined variables PHP Notice
...
- $order_string in include/dba
- $limit_string in include/dba
- $search in mod/search
- $lang_list in include/pgettext.php
2018-01-19 22:52:49 -05:00
Hypolite Petovan
f193f01a7d
Fix issues in changed files
...
- Initializes $return in Process::insert
- Update the type hint of dba::fetch
- Remove unused $a parameter in worker_init()
- Fix uses
2018-01-17 00:17:58 -05:00
Hypolite Petovan
e36f2bb1fb
Use short form array syntax everywhere
...
- Add short form array syntax to po2php.php generation
2018-01-15 14:07:17 -05:00
Hypolite Petovan
adfabeadb1
Rename param to condition in dba::delete
...
- Fix formatting
- Use new array syntax
2018-01-13 23:46:59 -05:00
Hypolite Petovan
483d1a1bcb
Rename selectOne to selectFirst in comment
2018-01-10 12:57:21 -05:00
Hypolite Petovan
ae66bcaff3
Rename selectOne to selectFirst
2018-01-10 12:57:21 -05:00
Hypolite Petovan
c7a7658316
Fix documentation in include/dba
2018-01-10 12:57:21 -05:00
Hypolite Petovan
da60893590
Replace dba::select(limit => 1) by dba::selectOne
...
- Convert array declarations to new style
2018-01-10 12:57:21 -05:00
Hypolite Petovan
6444f97c98
Fix issues in mod/contacts
...
- Fix formatting
- Use DBM::is_result()
- Use dba::select
- Simplify sprintf(t[t]()) structures
- Remove commented out code
- Remove unused variables
- Update documentation type hints
2018-01-05 21:05:23 -05:00
15d42de647
Class moved, changes applied
2017-12-14 21:13:02 +00:00
0457bd995f
"system_unavailable.php" is unavailable now
2017-12-13 21:55:19 +00:00
Hypolite Petovan
84418860bd
Improve dba
...
- Add dba::count
- Add support for LIMIT X,X
2017-12-01 00:34:54 -05:00
ffceb601d5
Some handling for empty parameters
2017-11-22 22:50:45 +00:00
7c3fd2adb5
Some more replaced old database functions
2017-11-22 07:21:19 +00:00