Michael Gapczynski
|
9eecb91338
|
Merge pull request #1113 from owncloud/fix-issue-1085
Fix rendering of database connection error page
|
2013-01-22 14:38:44 -08:00 |
|
Michael Gapczynski
|
5136f6d818
|
Make database connection error messages less verbose
|
2013-01-21 22:53:32 -05:00 |
|
Thomas Mueller
|
d58cee2f76
|
returning http status code 503 in case connecting to the database failed
|
2013-01-21 14:57:33 +01:00 |
|
Thomas Mueller
|
dea77b7610
|
cached queries need to be reset on schema change because they become invalid
fixes: https://github.com/owncloud/apps/issues/468
|
2013-01-20 22:46:26 +01:00 |
|
Robin Appelman
|
f18fc1c510
|
Clear cached prepared statements when switching between mdb2 and pdo
|
2013-01-16 01:12:13 +01:00 |
|
Robin Appelman
|
a08490364d
|
Cache prepared statements in OC_DB
|
2013-01-15 20:21:06 +01:00 |
|
Michael Gapczynski
|
d39655e126
|
Move template parameters around so database error page is properly rendered
|
2013-01-07 14:15:51 -05:00 |
|
Michael Gapczynski
|
f6426cee04
|
Tweak failure message and throw exceptions from updateDbFromStructure()
|
2013-01-05 12:13:36 -05:00 |
|
Bart Visscher
|
f39454ed12
|
Fix "Line indented incorrectly"
|
2012-12-15 00:43:46 +01:00 |
|
Robin Appelman
|
65e4dc183c
|
dont handle database exception in OC_DB
give the caller the option to handle the exception
|
2012-12-07 16:09:29 +01:00 |
|
Thomas Müller
|
f81321af3d
|
Merge pull request #556 from owncloud/postgres_insert_id
use lastval() to get the insert id in postgesql
|
2012-11-24 22:55:33 -08:00 |
|
Frank Karlitschek
|
e450933650
|
remove left over tag
|
2012-11-24 18:25:05 +01:00 |
|
Frank Karlitschek
|
0f61816278
|
A new function to create nice error page. And use it for fatal db errors
|
2012-11-24 18:07:26 +01:00 |
|
Frank Karlitschek
|
fb5d0db037
|
prettier error output. Let´s see how many more low hanging fruits I find on my way to the real bug that I want to fix ;-)
|
2012-11-23 16:40:28 +01:00 |
|
Robin Appelman
|
95340a9e67
|
use lastval() to get the insert id in postgesql
|
2012-11-23 00:23:27 +01:00 |
|
Thomas Tanghus
|
d809efc1e5
|
Change insertIfNotExist() for sqlite. Not fast, but more reliable than previous attempt.
|
2012-11-12 23:34:02 +01:00 |
|
Thomas Tanghus
|
42b871dcf1
|
Correct SQL syntax.
|
2012-11-12 18:45:56 +01:00 |
|
Thomas Tanghus
|
1147dc9774
|
Merge branch 'master' of github.com:owncloud/core into vcategories_db
Conflicts:
lib/vcategories.php
|
2012-11-05 12:06:59 +01:00 |
|
Thomas Tanghus
|
e6a7bba095
|
Merge branch 'master' of github.com:owncloud/core into vcategories_db
Conflicts:
lib/vcategories.php
|
2012-11-04 12:31:06 +01:00 |
|
Felix Moeller
|
30d7993e01
|
Checkstyle fixes: NoSpaceAfterComma
|
2012-11-04 11:10:46 +01:00 |
|
Felix Moeller
|
afadf93d31
|
Checkstyle: many fixes
|
2012-11-02 19:53:02 +01:00 |
|
Thomas Tanghus
|
2456401672
|
Remove redundant class wrapping.
|
2012-10-19 18:11:13 +02:00 |
|
Thomas Tanghus
|
10e29da8be
|
Use self::prepare() instead of self::$connection->prepare.
|
2012-10-19 17:21:23 +02:00 |
|
Thomas Tanghus
|
0e4ed2887c
|
Return result from OC_DB::insertIfNotExist().
|
2012-10-19 13:20:08 +02:00 |
|
Thomas Tanghus
|
9c9f5ef2d6
|
Merge branch 'master' of github.com:owncloud/core into vcategories_db
|
2012-10-15 21:41:38 +02:00 |
|
Bart Visscher
|
4af5b016cc
|
Whitespace cleanup
|
2012-10-14 21:04:08 +02:00 |
|
Bart Visscher
|
351f724193
|
whitespace fixes
|
2012-10-12 15:47:41 +02:00 |
|
Thomas Tanghus
|
7a30f46543
|
Merge branch 'master' of github.com:owncloud/core into vcategories_db
|
2012-10-10 23:00:46 +02:00 |
|
Björn Schießle
|
2bd4035076
|
$CONFIG_DBTYPE was never assigned but used in this function
|
2012-10-09 11:17:10 +02:00 |
|
Jörn Friedrich Dreyer
|
dc116b994d
|
reenable hack to use CURRENT_TIMESTAMP for postgresql when creating the database, fixes oc-1852
TODO for OC5: use CURRENT_TIMESTAMP for all databases. mysql supports it as a default for DATETIME since 5.6.5 [1]
as a fallback we could use <default>0000-01-01 00:00:00</default> everywhere
[1] http://bugs.mysql.com/bug.php?id=27645
http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html
http://www.postgresql.org/docs/8.1/static/functions-datetime.html
http://www.sqlite.org/lang_createtable.html
http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm
|
2012-10-08 17:24:15 +02:00 |
|
Thomas Tanghus
|
241862756e
|
Merge branch 'master' of github.com:owncloud/core into vcategories_db
|
2012-09-30 06:51:40 +02:00 |
|
Robin Appelman
|
f71f731f1c
|
fix phpdoc and handle some edges cases better in oc_db
|
2012-09-23 02:40:03 +02:00 |
|
Lukas Reschke
|
80aa44565b
|
Sanitize user input
|
2012-09-22 10:51:03 +02:00 |
|
Jörn Friedrich Dreyer
|
59a00f95c3
|
use AL32UTF8 charset to connect to oracle, fixes file name encoding problems
|
2012-09-20 21:07:54 +02:00 |
|
Jörn Friedrich Dreyer
|
9da150cd3b
|
use user name as db name for oracle connection made with service name
|
2012-09-17 16:32:24 +02:00 |
|
Thomas Tanghus
|
ffe04182a8
|
Added methods OC_DB::insertIfNotExist() and OCP\DB::insertIfNotExist().
|
2012-09-17 16:01:25 +02:00 |
|
Jörn Friedrich Dreyer
|
d3553ce33d
|
correctly calculate the MDB2 portability
|
2012-09-12 23:10:45 +02:00 |
|
Jörn Friedrich Dreyer
|
c7054f374c
|
log details for an error when upgrading the schema
|
2012-09-12 23:03:56 +02:00 |
|
Jörn Friedrich Dreyer
|
e31dfb643a
|
add getErrorMessage to OC_DB
|
2012-09-12 12:47:33 +02:00 |
|
Thomas Mueller
|
3829460ab8
|
adding space between) and {
|
2012-09-07 15:22:01 +02:00 |
|
Bart Visscher
|
5e55b4d6e7
|
Whitespace fixes in lib
|
2012-09-07 14:08:29 +02:00 |
|
Thomas Müller
|
24977d0fd0
|
Respect coding style
|
2012-09-05 15:49:42 +03:00 |
|
Robin Appelman
|
3c784ede83
|
use str_ireplace instead of duplicate str_replace
|
2012-09-02 13:58:01 +02:00 |
|
Robin Appelman
|
828ca2ba36
|
translate UNIX_TIMESTAMP() into sqlite and pgsql equivilents
|
2012-09-01 20:38:14 +02:00 |
|
Robin Appelman
|
6d48f3fab8
|
we still need this for pgsql
|
2012-09-01 16:49:29 +02:00 |
|
Bart Visscher
|
db18218a1b
|
Space before tab fixes
|
2012-08-29 20:34:44 +02:00 |
|
Bart Visscher
|
52f2e7112e
|
Whitespace fixes in lib
|
2012-08-29 20:28:45 +02:00 |
|
Jörn Friedrich Dreyer
|
3b83c7fa74
|
update now(), current_timestamp and backtick replacement
|
2012-08-27 18:37:16 +02:00 |
|
jfd
|
379f27ed03
|
fix missing $
|
2012-08-25 02:17:44 +02:00 |
|
Jörn Friedrich Dreyer
|
fa3497f6ed
|
add backticks to SQL, use limit parameter instead of LIMIT SQL
|
2012-08-25 01:52:27 +02:00 |
|