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
Michael
15d42de647
Class moved, changes applied
2017-12-14 21:13:02 +00:00
Michael
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
Michael
ffceb601d5
Some handling for empty parameters
2017-11-22 22:50:45 +00:00
Michael
7c3fd2adb5
Some more replaced old database functions
2017-11-22 07:21:19 +00:00
Michael
723b40eea4
No obsolete mysql_* anymore
2017-11-21 21:00:11 +00:00
Adam Magness
4ca68c7af0
Class file relocations
...
Issue #3878
2017-11-08 08:37:03 -05:00
Michael
1cbe27de12
DBA: The "connected" check for PDO didn't work.
2017-10-29 06:31:01 +00:00
Michael
a29b7e7153
"dba" is now a static class
2017-10-11 12:56:36 +00:00
Michael
dbcd1d1ae3
Additional check if the database object is initialized
2017-10-10 22:25:38 +00:00
Michael
63e02eb57f
Checks if the database variable is initialized
2017-10-10 22:18:57 +00:00
Michael
bd88179419
Add additional checks for the worker
2017-09-30 11:19:46 +00:00
Michael
0eb92bf12a
Unused functions removed
2017-09-16 05:09:14 +00:00
Michael
dfd48dd6f6
"qu" is no more
2017-09-15 21:00:39 +00:00
Michael
6d7ececc42
Bugfix for pictures that weren't stored / reworked database calls
2017-09-15 19:41:30 +00:00
Michael
f8d34e35e7
"exists", "select" whre is the difference?
2017-09-15 06:15:25 +00:00
Michael
88ada98245
Added documentation
2017-09-15 06:07:34 +00:00
Michael
cd16155c96
Only warn when there are arguments at all
2017-09-15 03:10:04 +00:00
Michael
f29e21eb5c
We now avoid prepared statements without an argument
2017-09-15 03:00:38 +00:00
Michael
c6ceae5225
The old database function is now replaced with a wrapper
2017-09-14 05:19:05 +00:00
Michael
a729519de9
And some more static warnings removed
2017-08-26 10:01:50 +00:00
Michael
b0c26921ad
Statically used methods should be defined statically as well
2017-08-25 15:56:08 +00:00
Michael
e533572ca3
Issue 3645: Avoid problems with boolean values
2017-08-23 19:40:42 +00:00
Michael
4f6f47f714
Now the bugfix really should work
2017-08-14 20:58:02 +00:00
Michael
796cee6273
Cleaning code
2017-08-14 05:52:36 +00:00
Michael
41a81624a2
Now deletions will also work with complicated queries
2017-08-12 18:07:47 +00:00
Michael
89017d4e6c
DBA: The condition can now be a complex string
2017-08-12 13:54:29 +00:00
Michael
1d8c91c478
Restructured "dba::exists" function
2017-08-12 08:55:50 +00:00
Michael
d810b21f87
New dba functions
2017-08-11 08:04:01 +00:00
Michael
7b6664f0f7
Improved parameter handling
2017-08-10 12:38:32 +00:00
Michael
f248f9cc85
Merge remote-tracking branch 'upstream/develop' into new-dba
2017-08-09 21:42:51 +00:00
Michael
fce72cbbc8
Modifed "update" and "insert" function / many changed queries
2017-08-09 21:12:41 +00:00
Michael
b01ab3e64c
DBA: Do a fallback to other db functions on problems
2017-08-09 06:02:48 +00:00
Tobias Diekershoff
4d77c8a90a
Merge pull request #3618 from annando/mysqli-fix
...
Quickfix for MYSQLi (prepared statement problem)
2017-08-08 09:32:26 +02:00
Michael
c3e1f88d4b
Quickfix for MYSQLi (prepared statement problem)
2017-08-08 06:07:04 +00:00
Johannes Schwab
37262c24d9
Catch exceptions in PDO constructor
2017-08-04 11:01:29 +02:00
Michael
1bd85971a4
Avoid some PHP warnings, no functional changes
2017-08-03 05:50:44 +00:00
Michael
568abd537a
Fixed error reporting
2017-07-12 08:14:36 +00:00
Michael
35b3723c4a
database logging now works for database errors
2017-07-11 19:14:49 +00:00
Michael
99b86c9fd9
Just found the handbrake ...
2017-06-29 21:19:31 +00:00
Michael
a7526f1291
New function for affected rows
2017-06-13 21:56:50 +00:00
Michael
e232c683b6
Changed timeout, logging added
2017-06-13 09:03:19 +00:00
Michael
cd129665ef
örgs
2017-06-13 05:56:02 +00:00
Michael
97be344a4a
Handle deadlocks centrally
2017-06-13 05:52:59 +00:00
Hypolite Petovan
9c0d2c31e8
Replace AND and OR in PHP conditions by && and ||
2017-06-07 22:00:59 -04:00
Michael
b86c4d539e
Locking waits now for a shorter period. DB locking is used at other locations as well
2017-06-05 14:59:53 +00:00
Michael
d2cb87a200
Database locks are now having its very own functions
2017-06-04 12:59:29 +00:00
Michael
41f94a62fc
Spelling
2017-05-16 06:00:01 +00:00
Michael
124690cc4d
dba: Beautification is now a separate function
2017-05-15 21:06:17 +00:00
Michael
83e4141639
Bugfix: dba::num_rows hadn't checked the object variable
2017-05-15 15:17:38 +00:00
Michael
05c890f256
Bugfix: The commit in dba::delete was never executed
2017-05-14 07:01:38 +00:00
Michael
c52f7657ab
Now it should work
2017-05-11 20:19:43 +00:00
Michael
6ef24890bb
dbclean is now using the new database functions / new functions for commit, rollback and transaction
2017-05-11 20:13:45 +00:00
Michael
054e40de65
And another one
2017-05-07 08:18:50 +00:00
Michael
7a3bdbfc15
Wrong parameter for delete command
2017-05-07 08:12:36 +00:00
Michael
8dd8936dd0
DESC should be ASC - this is more logically.
2017-05-06 12:46:31 +00:00
Michael
3ca70e6362
New function "dba::select" to fetch table rows
2017-05-06 11:32:18 +00:00
Michael
353074850e
It is now possible to connect to a db server with host:port
2017-05-03 19:22:44 +00:00
Michael
b767a47527
PR 3419: Avoid problems with PHP7 and dba.php
2017-05-02 10:47:53 +00:00
Michael
d106ff5086
Error reporting hadn't worked for the new functions
2017-05-01 21:38:37 +00:00
Michael
0241a88c0d
Avoid duplicated queries
2017-05-01 19:54:08 +00:00
Michael
b9b43e30e6
Delete queries are now split into chunks.
2017-05-01 17:42:37 +00:00
Michael
e90ae79d35
The number of queries is reduced dramatically
2017-05-01 09:34:15 +00:00
Michael
e6cbe3be11
This is better
2017-05-01 06:35:41 +00:00
Michael
0d7996d852
Only fetch the rows when needed
2017-05-01 05:45:36 +00:00
Michael
c2820c452f
Delete now works
2017-04-30 19:54:41 +00:00
Michael
0e4cd900d5
Improved dba:update function.
2017-04-29 07:50:09 +00:00
Michael
9900d28c4b
We should return a return value when we say that we have a return value.
2017-04-28 06:21:12 +00:00
Michael
782783aa52
New function "dba::update" and changed unique index for the conversations
2017-04-28 05:50:27 +00:00
Michael
3b5e1bbfc3
dba:p and dba:e can now be called with a parameter array as well.
2017-04-28 04:47:28 +00:00
Michael
615197e044
We should escape the table name as well.
2017-04-28 04:05:50 +00:00
Michael
35dc56c9c2
Salmons with Mastodon seem to work now
2017-04-27 20:38:46 +00:00
Michael
45d73b106b
Conversation data is now stored in another table
2017-04-26 21:16:25 +00:00
Michael
d11e3afc6c
Added class description
2017-04-25 16:05:26 +00:00
Michael
4c131362b3
Better debugging
2017-04-25 05:20:34 +00:00
Michael
67bae59c66
Small corrections
2017-04-25 05:11:04 +00:00
Michael
8de510e635
We weren't able to test mysqlnd, so better remove the code
2017-04-24 21:51:47 +00:00
Michael
eb63ce5df5
Free results
2017-04-24 21:36:04 +00:00
Michael
ec0d2a1a03
Little spelling problem
2017-04-24 21:23:00 +00:00
Michael
b5f10e5ddb
Replace spaces by tabs
2017-04-24 21:20:24 +00:00
Michael
ed437e978a
Code cleanup
2017-04-24 21:18:30 +00:00
Michael
82f13441bc
Removed old functions
2017-04-24 21:02:51 +00:00
Michael
9959da5a1c
New function to calculate rows
2017-04-24 20:32:35 +00:00
Michael
d67338a895
New function to check for the existance of data
2017-04-24 19:23:49 +00:00
Michael
d636bcb9d3
Restored privates variables
2017-04-24 06:27:59 +00:00
Michael
311c029bcf
Rearranged lines
2017-04-24 06:26:49 +00:00
Michael
34bb34b9a4
Lost lines are back
2017-04-24 06:24:03 +00:00