Patrick Webster
09d49fb7b2
[ticket/10858] Move generic row seeking to DBAL
...
Removed from: firebird, mssql_odbc, and mssqlnative
PHPBB3-10858
2012-05-08 19:41:22 -05:00
Patrick Webster
e52d23848a
[ticket/10858] Fix MSSQL Native's row seeking behavior
...
The result_mssqlnative class remains in case someone wants to use it
PHPBB3-10858
2012-05-08 18:44:43 -05:00
Andreas Fischer
ef8160e8a2
[ticket/10774] Correctly specify index name when creating unique index on MySQL.
...
PHPBB3-10774
2012-04-10 00:53:27 +02:00
Andreas Fischer
c11607bdd1
[ticket/10653] Call get_row_count of base class in mysql get_estimated_row_count
...
There is no point in fetching the table status again.
PHPBB3-10653
2012-03-08 14:39:03 +01:00
Andreas Fischer
f9953fc339
[ticket/10653] Add ability to count table rows to database abstraction layer.
...
PHPBB3-10653
2012-03-03 21:04:01 +01:00
Andreas Fischer
d9fef488af
[ticket/9079] Display backtrace on all E_USER_ERROR errors, not only SQL errors
...
PHPBB3-9079
2011-12-24 01:14:25 -05:00
dmauri
3d893c8222
[ticket/10296] Fix CROSS JOIN with INNER JOIN on MSSQL, Postgres and Oracle
...
PHPBB3-10296
2011-11-15 22:19:45 +01:00
Igor Wiedler
cafefe9379
Merge remote-tracking branch 'bantu/ticket/10327' into develop-olympus
...
* bantu/ticket/10327:
[ticket/10327] Use $this->tools instead of creating a new instance of db_tools.
[ticket/10327] Also change CREATE UNIQUE INDEX to use ALTER TABLE.
2011-10-14 17:50:08 +02:00
Andreas Fischer
7e18d2b861
[ticket/10327] Also change CREATE UNIQUE INDEX to use ALTER TABLE.
...
PHPBB3-10327
2011-10-14 17:23:21 +02:00
Andreas Fischer
4effe8fb8b
[ticket/8240] Add ability to get a list of columns of a tables to db_tools.
...
PHPBB3-8240
2011-10-14 16:35:14 +02:00
Andreas Fischer
234edf674c
[ticket/8240] Add ability to get a list of tables to db_tools.
...
PHPBB3-8240
2011-10-14 16:35:07 +02:00
Andreas Fischer
d86fccf9c9
[ticket/10327] Change CREATE INDEX to ALTER TABLE table ADD INDEX for MySQL.
...
* CREATE INDEX is internally mapped to an ALTER INDEX statement.
* CREATE INDEX requires the INDEX permission.
* ALTER TABLE requires the (more powerful) ALTER permission.
* We require the ALTER permission anyway for operation.
* Changing CREATE INDEX to ALTER TABLE thus removes dependency on the INDEX
permission which is good because some management software does not give
out the INDEX permission by default.
http://dev.mysql.com/doc/refman/5.0/en/create-index.html
PHPBB3-10327
2011-10-14 14:30:51 +02:00
Igor Wiedler
3cd8c2507d
[ticket/10307] Return false in mysqli sql_fetchrow on empty result
...
PHPBB3-10307
2011-10-13 16:43:11 +02:00
Andreas Fischer
92373e6d46
Merge remote-tracking branch 'bantu/ticket/10294' into develop-olympus
...
* bantu/ticket/10294:
[ticket/10294] Fix sql_affectedrows() in mssqlnative driver.
2011-09-06 00:43:10 +02:00
Andreas Fischer
d28ec48675
Merge remote-tracking branch 'Noxwizard/ticket/10351' into develop-olympus
...
* Noxwizard/ticket/10351:
[ticket/10351] Fix Oracle's sql_column_remove()
2011-09-06 00:42:48 +02:00
Patrick Webster
5c7f5f0516
[ticket/10352] Add missing break for Oracle's sql_table_drop()
...
PHPBB3-10352
2011-09-04 20:31:34 -05:00
Patrick Webster
d938d5d399
[ticket/10351] Fix Oracle's sql_column_remove()
...
The correct syntax is DROP COLUMN.
PHPBB3-10351
2011-09-04 20:22:36 -05:00
Nils Adermann
0f2e45800e
[ticket/10346] Add drop_tables to perform_schema_changes and add tests
...
PHPBB3-10346
2011-08-29 14:24:50 -04:00
Andreas Fischer
c38b083057
[ticket/10294] Fix sql_affectedrows() in mssqlnative driver.
...
sqlsrv_rows_affected() expects a statement resource, not a connection resource.
PHPBB3-10294
2011-07-28 15:57:09 +02:00
Nils Adermann
825d44fcc2
Merge remote-tracking branch 'github-rxu/ticket/10226' into develop-olympus
...
* github-rxu/ticket/10226:
[ticket/10226] Use is_numeric() instead of preg_replace()
[ticket/10226] Allow mysqli connections via local sockets/pipes
2011-07-16 22:18:48 -04:00
Andreas Fischer
b1608ae860
[ticket/10267] Call strlen() on $table_prefix for $max_length calculation.
...
PHPBB3-10267
2011-07-14 02:09:22 +02:00
Nils Adermann
cf4e6d8a3e
Merge branch 'prep-release-3.0.9' into develop-olympus
...
* prep-release-3.0.9:
[ticket/9859] Changing all phpBB footers to match the new credit line
[ticket/9859] New footer copyright line with registered symbol
2011-07-06 21:51:33 -04:00
Yuriy Rusko
a275d17625
[ticket/9859] Changing all phpBB footers to match the new credit line
...
PHPBB3-9859
2011-07-06 21:46:33 -04:00
rxu
18fb3d86cd
[ticket/10226] Use is_numeric() instead of preg_replace()
...
PHPBB3-10226
2011-06-21 22:03:19 +08:00
rxu
578f9dffa6
[ticket/10226] Allow mysqli connections via local sockets/pipes
...
PHPBB3-10226
2011-06-21 00:55:10 +08:00
rxu
7de078b26e
[ticket/10227] Allow persistent connections for mysqli with PHP 5.3.0+
...
PHPBB3-10227
2011-06-19 19:03:53 +08:00
Nils Adermann
c090e1c9e9
[ticket/10214] Correct Oracle create table query syntax in db_tools
...
Removes the semicolon at end of oracle CREATE TABLE queries and adds a
semicolon to the end of a SELECT query inside of the trigger for a new
table's auto increment column before the end keyword
PHPBB3-10214
2011-06-13 06:14:59 +02:00
Nils Adermann
ef544ee095
[ticket/9892] Table prefix lengths influence index lengths in db_tools
...
PHPBB3-9892
2011-06-12 04:10:51 +02:00
Nils Adermann
418c3d546a
[ticket/9892] column & index name limits, firebird auto increment in db_tools
...
- Column names are limited to 30 characters
- Index names are limited to 31 characters.
On some dbms the index name contains both table name and actual index name
so the limit applies to the sum of the lenghts of table name and index name.
- Auto incremented column names are limited to 26 characters to provide an
additional 4 characters for sequence names
The code for firebird auto increment support using generators/sequences with
triggers was copied from create_schema_files.php
PHPBB3-9892
2011-06-12 01:28:01 +02:00
Nils Adermann
2dee57fd43
[ticket/9992] Adding a limit on login attempts per IP.
...
A new table was created to save all failed login attempts with
corresponding information on username, ip and useragent. By default
the limit is 50 login attempts within 6 hours per IP. The limit is
relatively high to avoid big problems on sites behind a reverse
proxy that don't receive the forwarded-for value as REMOTE_ADDR but
see all users as coming from the same IP address. But if these
users run into problems a special forwarded-for option is available
to limit logins by forwarded-for value instead of ip.
PHPBB3-9992
2011-06-10 12:18:19 +02:00
Nils Adermann
ebe83769e6
[ticket/9685] Consistently name the new sql_buffer_nested_transactions function
...
PHPBB3-9685
2011-06-02 01:52:25 +02:00
Oleg Pudeyev
1e2c19f4b4
[ticket/10003] Delete EOL at EOF for the benefit of 3.0 modifications.
...
PHPBB3-10003
2011-04-29 02:16:02 -04:00
Oleg Pudeyev
85549fad83
[ticket/10003] Ported 1802b9ff9286a7fc24493e71b3432816cbdbfcd8 to db_tools.
...
Most of it was already in db_tools, these changes could have applied to
code that did not exist in db_tools at the time of the commit.
PHPBB3-10003
2011-04-29 02:10:42 -04:00
Oleg Pudeyev
55ff5da70b
[ticket/10003] Ported 5553cfc2ed81ba9eb571804c431def962720b39e to db_tools.
...
The diff in database_update was only partially relevant.
PHPBB3-10003
2011-04-29 02:10:42 -04:00
Oleg Pudeyev
761e3dd36f
[ticket/10003] Ported 023760c8b2402418310a3717db8349cac0342e42 to db_tools.
...
This was painful. Git wanted to patch hunks in wrong places.
Hopefully I got it right.
PHPBB3-10003
2011-04-29 02:10:42 -04:00
Oleg Pudeyev
9f34aa0b79
[ticket/10003] Ported 54c22ae52a0e18232cac8fed342ea52f2e2a793d to db_tools.
...
This diff applied cleanly.
PHPBB3-10003
2011-04-29 02:10:42 -04:00
Oleg Pudeyev
3cb1b90ca6
[ticket/10003] Ported 96a30afcca3ebd832c9b3083bb5c9a9f2a2dc54b to db_tools.
...
This change is somewhat questionable, maybe it should be reviewed.
PHPBB3-10003
2011-04-29 02:10:41 -04:00
Oleg Pudeyev
e6eb11bb11
[ticket/10003] Ported d7d96223e7bae7cd60b13c6e7896d95838c3633c to db_tools.
...
PHPBB3-10003
2011-04-29 02:10:41 -04:00
Igor Wiedler
564ce6c7f6
Merge remote branch 'callumacrae/ticket/10112' into develop-olympus
...
* callumacrae/ticket/10112:
[ticket/10112] Replaced a couple occurrences of count() with sizeof()
2011-03-31 20:31:58 +02:00
Callum Macrae
657971754b
[ticket/10112] Replaced a couple occurrences of count() with sizeof()
...
As per the coding guidlines, sizeof() should be used instead of count().
PHPBB3-10112
2011-03-30 11:30:27 +01:00
Andreas Fischer
6ac93d8a00
Merge branch 'ticket/jellydoughnut/9946' into develop-olympus
...
* ticket/jellydoughnut/9946:
[ticket/9946] Allow storage of data >4kB on Oracle again
2011-03-24 09:22:12 +01:00
Nils Adermann
91b3195255
[ticket/9685] Buffer posts for search indexing when using mssqlnative.
...
To have a generic solution there is now a sql_buffer_nested_transaction()
which indicates that the given SQL driver requires buffering to run a
transaction while iterating over another result set.
PHPBB3-9685
2011-03-15 01:41:16 +01:00
Oleg Pudeyev
87e3560c30
[ticket/10057] Fixes for a bunch of small problems.
...
PHPBB3-10057
2011-03-08 19:48:56 -05:00
Josh Woody
f6c6de4539
[ticket/9946] Allow storage of data >4kB on Oracle again
...
This fixes the fix to PHPBB3-9132, which introduced a fatal error on Oracle.
PHPBB3-9946
2011-03-07 10:31:25 -06:00
Oleg Pudeyev
020d06cdaa
[ticket/10057] Handle the case of missing interbase extension better.
...
PHPBB3-10057
2011-03-07 09:09:40 -05:00
Oleg Pudeyev
7acbf98692
[ticket/10057] Fixed wrong usage of sql_error again, in firebird.
...
This necessitates adding connect_error property to firebird.
PHPBB3-10057
2011-03-07 09:04:01 -05:00
Oleg Pudeyev
e5aa2c9ac1
[ticket/10057] Fixed usage of sql_error again.
...
PHPBB3-10057
2011-03-07 08:52:59 -05:00
Oleg Pudeyev
98388b2921
[ticket/10057] Fixed wrong usage of sql_error in postgres dbal.
...
pg_last_error does not work if no connection was ever established.
Therefore we must keep track of connection errors in postgres
dbal ourselves.
PHPBB3-10057
2011-03-06 23:17:01 -05:00
Oleg Pudeyev
edc1deaa3a
[ticket/10057] Skip ibase_service_attach if firebird connection failed.
...
ibase_errmsg works for the most recent call. If the connection
fails, any error message is clobbered by ibase_service_attach call.
PHPBB3-10057
2011-03-06 23:13:19 -05:00
Oleg Pudeyev
4d92f9bb2e
[ticket/10057] Check for interbase function existence.
...
Calling nonexistent functions with @ destroys the script with
no feedback as to the cause of the error. Check whether
interbase functions exist before calling them.
PHPBB3-10057
2011-03-06 23:10:09 -05:00