Piotr Przybylski
6fe137e68d
PMA_DBI_get_columns - return null when there are no columns (server synchronize depends on this behavior)
2011-08-05 01:15:37 +02:00
Piotr Przybylski
66665f326a
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
db_qbe.php
js/server_status.js
libraries/export/xml.php
libraries/schema/Pdf_Relation_Schema.class.php
tbl_printview.php
tbl_structure.php
2011-08-04 20:19:43 +02:00
Michal Čihař
9fd0baaad2
Fix indentation
2011-08-04 15:38:13 +02:00
Piotr Przybylski
11f2c43f11
Merge remote-tracking branch 'origin/master' into drizzle
2011-08-03 23:58:48 +02:00
Piotr Przybylski
95e90bbba4
Comments and formatting
2011-08-03 23:56:02 +02:00
Piotr Przybylski
997a5ea14c
Comment change
2011-08-01 18:03:33 +02:00
Sven Strickroth
6ec8bb013b
extend PMA_DBI_get_definition to support views
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2011-08-01 15:38:10 +02:00
Piotr Przybylski
b57fda5b3d
Merge remote-tracking branch 'origin/master' into drizzle
2011-07-31 00:46:49 +02:00
Piotr Przybylski
e3b91b7a0b
PMA_DBI_fetch_value, PMA_DBI_fetch_single_row and PMA_DBI_fetch_result don't need to cache affected rows because there are none
2011-07-31 00:44:42 +02:00
Piotr Przybylski
eb18aeeeb2
Remove debug code
2011-07-29 17:14:22 +02:00
Piotr Przybylski
abdf808dee
Correctly detect drizzle extension
2011-07-28 22:46:19 +02:00
Piotr Przybylski
3586bb992f
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
db_structure.php
libraries/database_interface.lib.php
libraries/server_synchronize.lib.php
server_status.php
sql.php
2011-07-22 11:07:04 +02:00
Michal Čihař
9405dbb82a
Fix spacing after @param
2011-07-22 09:21:55 +02:00
Piotr Przybylski
a28beb9c1f
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
libraries/server_synchronize.lib.php
server_status.php
2011-07-21 15:25:52 +02:00
Michal Čihař
48e9af42e0
Add missing space after foreach calls
2011-07-21 11:21:26 +02:00
Piotr Przybylski
6dbcab261e
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
server_status.php
2011-07-20 18:23:21 +02:00
Piotr Przybylski
6deed1fd2e
Change NULL to null
2011-07-20 18:08:04 +02:00
Piotr Przybylski
a0a4628b11
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
libraries/export/latex.php
libraries/export/odt.php
libraries/export/texytext.php
libraries/export/xml.php
2011-07-14 22:38:20 +02:00
Piotr Przybylski
94b83dc3e9
Escape column name in PMA_DBI_get_columns_full
2011-07-14 21:31:45 +02:00
Piotr Przybylski
ab4cca24bc
There are no triggers in Drizzle
2011-07-14 00:40:01 +02:00
Piotr Przybylski
beddd31ec3
Make PMA_DBI_getCompatibilities() aware of Drizzle - it doesn't have SQL_MODE
2011-07-13 17:00:42 +02:00
Piotr Przybylski
bf9469ec18
Merge remote-tracking branch 'origin/master' into drizzle
2011-07-13 12:25:06 +02:00
Rouslan Placella
1bbb2ea37e
Merge branch 'master' into rte
2011-07-04 15:36:27 +01:00
Piotr Przybylski
0266ddd7bd
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
libraries/database_interface.lib.php
2011-07-03 00:41:31 +02:00
Piotr Przybylski
e6b1d479cf
Move PMA_DBI_get_column_values and PMA_DBI_get_table_indexes to server_synchronize.lib.php
...
They are used only there, no need to parse 1,5 KB of code on every page load
2011-07-02 00:45:08 +02:00
Piotr Przybylski
5021bae02f
Remove unused PMA_DBI_get_table_data
2011-07-02 00:34:25 +02:00
Piotr Przybylski
d5dd8a2d37
Fix PMA_DBI_get_columns
2011-07-01 20:37:58 +02:00
Piotr Przybylski
e3a4f6d95a
Fix PMA_DBI_get_columns when $column parameter is used and UNI key is promoted to PRI
2011-06-30 18:54:45 +02:00
Piotr Przybylski
29070219a9
Fix comments
2011-06-30 16:41:48 +02:00
Rouslan Placella
cf61fb1270
Prototype integration of Triggers editor.
2011-06-30 13:12:26 +01:00
Rouslan Placella
b4b56ed461
Merge branch 'master' into rte
...
Conflicts:
db_routines.php
libraries/db_events.inc.php
libraries/rte/rte_routines.lib.php
2011-06-30 11:42:16 +01:00
Piotr Przybylski
7255ec2100
Change PMA_DBI_get_columns() to always return complex descriptions, never simple column list (it was needed for one case anyway)
...
Bugfixes
2011-06-30 00:48:19 +02:00
Piotr Przybylski
04fef01fd7
Properly compute 'Extra' in PMA_DBI_get_columns_sql (Drizzle)
2011-06-28 23:34:01 +02:00
Piotr Przybylski
96c5c6dbc6
Add $column parameter to PMA_DBI_get_columns
2011-06-28 23:11:58 +02:00
Piotr Przybylski
83117b18d7
Use PMA_sqlAddSlashes from recent merge
2011-06-27 23:59:04 +02:00
Piotr Przybylski
3bde595666
Merge remote-tracking branch 'origin/master' into drizzle
2011-06-27 23:55:32 +02:00
Michal Čihař
c9c9fdf49d
Consistent capitalisation of PMA_sqlAddSlashes
2011-06-27 14:48:15 +02:00
Michal Čihař
6a422caf52
Proper escaping while checking for table (bug#3323066)
2011-06-27 14:46:04 +02:00
Michal Čihař
e57f27e50b
Remove @uses tags from docblocks
2011-06-27 11:20:20 +02:00
Piotr Przybylski
3eaff6afb6
A few Drizzle-related changes to db operations tab
2011-06-26 18:38:36 +02:00
Piotr Przybylski
6553cdd663
Add information about query errors to debug output
2011-06-26 18:37:24 +02:00
Piotr Przybylski
e38b5cd4ff
Merge remote-tracking branch 'origin/master' into drizzle
...
Conflicts:
db_structure.php
libraries/common.lib.php
libraries/database_interface.lib.php
tbl_structure.php
2011-06-23 14:02:58 +02:00
Michal Čihař
c6ec73963f
Use PMA_sqlAddSlashes for database queries instead of addslashes.
...
Should fix bug#3323066
2011-06-21 17:41:47 +02:00
Rouslan Placella
61329e5c87
Merge branch 'master' into rte
2011-06-20 18:26:50 +01:00
Piotr Przybylski
3aaaf33afa
Merge remote-tracking branch 'origin/master' into drizzle
2011-06-19 23:35:08 +02:00
Piotr Przybylski
18513b3e5d
Fix comments
2011-06-19 23:34:02 +02:00
Piotr Przybylski
04dd50ac5d
Properly escape names in PMA_isView
2011-06-19 23:34:01 +02:00
Piotr Przybylski
2e01d01b32
Change all calls of SHOW KEYS/INDEX that use MySQL-specific fields to use query generation function
2011-06-18 00:15:43 +02:00
Piotr Przybylski
4273c602c8
Bugfix for new PMA_DBI_get_columns
2011-06-17 21:25:13 +02:00
Piotr Przybylski
30b85be0a2
Allow for null values in PMA_DBI_get_tables_full
2011-06-17 21:03:02 +02:00
Piotr Przybylski
12f70e8938
Replace all SHOW FIELDS calls with PMA_DBI_get_columns() or PMA_DBI_get_columns_sql()
...
Fix PMA_DBI_get_columns() in Drizzle when $full == false
2011-06-17 00:22:25 +02:00
Piotr Przybylski
f77886d1a0
Fix for I_S and D_D table data returned by PMA_DBI_get_tables_full
2011-06-08 00:37:31 +02:00
Rouslan Placella
0189a62776
Merge branch 'master' into rte
2011-06-06 17:18:35 +01:00
Piotr Przybylski
96f3b37fc1
Merge remote-tracking branch 'origin/master' into drizzle
2011-06-06 16:42:04 +02:00
Michal Čihař
4603ca7001
Factor out common code for PMA_DBI_try_query.
...
PMA_DBI_try_query is now shared for mysql and mysqli as the only
difference there was real call to the database, the rest was same
(timing, tracking, debugging,..).
2011-06-06 14:03:13 +02:00
Rouslan Placella
c27b2e776b
Merge branch 'master' into rte
2011-06-06 12:44:15 +01:00
Piotr Przybylski
a56d77fb67
Merge remote-tracking branch 'origin/master' into drizzle
2011-06-06 12:12:42 +02:00
Michal Čihař
3cf4830bbb
Replace TRUE/FALSE with true/false.
...
At least this seems to be the coding standard, so make all files
compliant.
2011-06-06 11:55:09 +02:00
Rouslan Placella
35454870e5
Merge branch 'master' into rte
2011-06-04 20:26:11 +01:00
Michal Čihař
bbbf2c49ed
Drop $GLOBALS['charset'].
...
It was anyway always set to utf-8 so it does not make sense to keep it
as a variable.
2011-06-03 14:04:29 +02:00
Piotr Przybylski
33255a189c
PMA_DBI_get_columns_full: works with Drizzle, uniform behavior with DisableIS true/false
2011-05-28 00:26:13 +02:00
Piotr Przybylski
9f59de6167
PMA_isSuperuser() and other privileges (Drizzle)
2011-05-27 20:18:00 +02:00
Piotr Przybylski
cafbefd518
PMA_DBI_get_columns - add "on update ..." to Extra when possible (Drizzle)
2011-05-25 19:43:44 +02:00
Piotr Przybylski
dd5324c05a
Rewrite PMA_DBI_get_databases_full to work with Drizzle
...
For Drizzle the only extended stat that works are SCHEMA_TABLES (always) and SCHEMA_TABLE_ROWS (only for InnoDB/innobase tables)
2011-05-24 10:07:20 +02:00
Piotr Przybylski
539e8b26b3
Cast d_d.tables.auto_increment to NULL because currently (2011.03.13 GA) Drizzle doesn't provide correct value
2011-05-22 16:23:38 +02:00
Piotr Przybylski
3c9ef40d1e
Add table alias in PMA_DBI_get_tables_full to avoid ambiguous field names in filtered queries (broken by join with TABLE_CACHE)
2011-05-22 15:03:30 +02:00
Piotr Przybylski
e69c721789
Try to get AVG_ROW_LENGTH from table cache
2011-05-22 14:25:51 +02:00
Piotr Przybylski
05c8dbee77
Try to get table size from table cache
2011-05-22 14:20:04 +02:00
Rouslan
aac4d59508
Support retreiving Triggers on a per-database basis.
2011-05-21 17:41:30 +01:00
Piotr Przybylski
fe53e42d1d
Remove deprecated function PMA_DBI_get_fields
2011-05-20 23:12:58 +02:00
Piotr Przybylski
b9d37f27d2
Replace broken ANSI string concatenation with concat() function
2011-05-19 15:37:55 +02:00
Piotr Przybylski
4e090e1647
Read precision and scale for numeric columns, read enum definition for enums
2011-05-19 15:26:22 +02:00
Piotr Przybylski
ee72f556aa
Code formatting
2011-05-19 15:08:55 +02:00
Piotr Przybylski
3c20076785
Make PMA_DBI_get_columns work with Drizzle
2011-05-18 22:19:26 +02:00
Piotr Przybylski
9c17051117
Remove deprecated function PMA_DBI_get_fields
2011-05-18 20:49:04 +02:00
Piotr Przybylski
4700907a5b
Join with InnoDB stats only where InnoDB is provided by innobase library
...
Fix notice
2011-05-17 23:23:40 +02:00
Piotr Przybylski
b4bfa7f155
Use lowercase comparisons for Drizzle database names
2011-05-11 12:56:43 +02:00
Piotr Przybylski
423b45f6b2
PMA_DBI_get_tables_full - row counts for InnoDB tables in Drizzle
2011-05-09 19:46:35 +02:00
Piotr Przybylski
ddcc470320
Make PMA_DBI_get_tables_full work with Drizzle
2011-05-09 19:46:29 +02:00
Marc Delisle
13b31956ae
For easier reading, replace "!isset" with "! isset"
2011-05-09 12:49:05 -04:00
Piotr Przybylski
56476bc74d
Make sure $limit is initialized
2011-05-03 14:26:55 +02:00
Piotr Przybylski
5c39c5511f
Comments formatting and PHPDoc fixes
2011-05-02 20:50:16 +02:00
Piotr Przybylski
4c957837eb
Introduce PMA_DRIZZLE constant
2011-04-06 15:40:58 +02:00
Piotr Przybylski
dcf0e4235a
remove unused variable
2011-02-17 02:46:05 +01:00
Marc Delisle
45eb47fe14
Merge branch 'QA_3_3'
2011-01-08 13:45:40 -05:00
Marc Delisle
8244589813
Bug #3153409 [core] 0 row(s) affected
2011-01-08 13:44:28 -05:00
Madhura Jayaratne
066b746bef
patch #3150164 [structure] Ordering by size gives incorrect results
2011-01-03 08:10:49 -05:00
Marc Delisle
cfca67f422
Merge branch 'QA_3_3'
2011-01-03 08:03:41 -05:00
Madhura Jayaratne
55cd2fd898
patch #3150164 [structure] Ordering by size gives incorrect results
2011-01-03 08:02:28 -05:00
Michal Čihař
ae7a20607d
Do not set charset for Drizzle.
2010-10-21 10:04:37 +02:00
Michal Čihař
2c7161c7a3
Remember also MySQL major version.
2010-10-21 10:04:15 +02:00
Michal Čihař
d17fba309c
Fix permissions.
...
Most files were made executable somewhere in ninadsp tree, reverting
this.
2010-08-30 09:53:37 +02:00
ninadsp
c9253c0a0e
Merge conflict resolved for Lori's tree merge to main
2010-08-22 12:42:54 +05:30
Michal Čihař
862e3ca2a7
Merge branch 'QA_3_3'
...
Conflicts:
libraries/core.lib.php
server_databases.php
server_privileges.php
2010-08-20 13:40:37 +02:00
Michal Čihař
41145feb12
Merge branch 'MAINT_3_3_5' into QA_3_3
...
Conflicts:
ChangeLog
libraries/common.lib.php
2010-08-20 13:36:49 +02:00
Michal Čihař
533e102135
Fix handling of unknown sort order.
2010-08-18 11:30:19 +02:00
ninadsp
a458147969
Merge from upstream. Resolved a conflict in js/functions.js
2010-08-05 23:51:14 +05:30
Marc Delisle
887e2be664
fix merge conflicts
2010-08-01 06:20:10 -04:00
Marc Delisle
fd1d214d35
bug #3036132 [core] Triggers not fetched if dbname has an hyphen
2010-08-01 06:17:03 -04:00
ninadsp
a2f78a6d38
Resolve merge conflicts for upstream merge
2010-07-29 19:17:25 +05:30
Michal Čihař
3910ce6121
Remove explicit inclusion of Table.class.php as it is included in common.inc anyway.
2010-07-26 16:35:52 +02:00
ninadsp
e646a2760c
Fixed conflict due to upstream merge
2010-07-23 21:59:15 +05:30
Michal Čihař
318dc4b650
Drop @version tag from docblocks.
2010-07-20 13:59:17 +02:00
ninadsp
bed1948d04
testing git setup - no major change made in code yet
...
only added a few comments
2010-05-23 01:22:01 +05:30
Michal Čihař
40388d4fe0
Simplify MySQL modules warnings by using standard functions.
2010-05-05 11:36:33 +02:00
Marc Delisle
2182098af6
strings to gettext, second batch
2010-05-04 20:07:19 -04:00
Marc Delisle
bd31cbb260
bug 2953050 export VIEW as SQL includes INSERT statement
2010-02-27 16:39:41 +00:00
Marc Delisle
760ac0cd98
bug 2953050 export VIEW as SQL includes INSERT statement
2010-02-27 16:39:41 +00:00
Marc Delisle
e5750aa98c
bug #2959746 Unknown table status: TABLE_TYPE
2010-02-26 17:43:58 +00:00
Marc Delisle
ac649c64be
bug #2959746 Unknown table status: TABLE_TYPE
2010-02-26 17:43:58 +00:00
Marc Delisle
0b7a3f716a
bug 2941037 - Database structure not sorted by table correctly
2010-02-12 09:37:29 +00:00
Marc Delisle
0560e299a2
bug 2941037 - Database structure not sorted by table correctly
2010-02-12 09:37:29 +00:00
Marc Delisle
526dce65cb
3.3
2009-12-31 13:11:19 +00:00
Marc Delisle
f3833884e4
3.3
2009-12-31 13:09:18 +00:00
Herman van Rink
195165c2ae
Code cleanup
2009-12-27 13:59:08 +00:00
Marc Delisle
cf67da28a1
bug #2887357 [core] Slow loading times with large databases (partial fix)
2009-11-08 11:33:28 +00:00
Herman van Rink
0ad129ef05
bug #2872247 [interface] Failed opening required mysql_charsets.lib.php, thanks to CyberLeo Kitsana - cyberleo
2009-10-03 19:25:26 +00:00
Marc Delisle
2227f1c4c3
bug #2852370 [operations] Renaming database deletes triggers
2009-09-27 13:23:07 +00:00
Marc Delisle
c34ab9ed37
bug #2832600 [export] Slow export when having lots of databases
2009-09-20 12:21:30 +00:00
Michal Čihař
215b8fa174
Added ability for synchronizing databases among servers.
...
Manual merge from branches/gsoc/zahra.
2009-08-24 14:39:38 +00:00
Marc Delisle
15441ded5d
do not try to display a tab that was not built
2009-08-22 11:22:50 +00:00
Herman van Rink
adca3098ab
bug #2787162 [interface] Table with name log_views is incorrectly displayed as a view
2009-05-06 08:30:27 +00:00
Alexander M. Turek
69b98b42e2
Bug #2565948
2009-02-09 15:25:54 +00:00
Marc Delisle
f37a935203
bug #2568054 for numeric db name
2009-02-08 13:31:58 +00:00
Marc Delisle
da6a269834
bug #2468354 , SHOW TABLES throws a notice
2008-12-28 13:35:47 +00:00
Marc Delisle
197434c7b1
notice from array_diff() that argument #2 is not an array
2008-12-25 13:56:38 +00:00
Marc Delisle
ec4549f994
patch #2356575 [display] Sortable database columns
2008-12-15 17:27:43 +00:00
Sebastian Mendel
4c3f3a068f
do not overwrite already cached table infos
2008-12-10 09:18:14 +00:00
Michal Čihař
ebeb0c319f
Adding @package, first part.
2008-11-24 10:32:56 +00:00
Marc Delisle
64623fe9db
[security] Code execution vulnerability
2008-09-15 12:03:45 +00:00
Marc Delisle
1bd7ec70e2
bug #2046883 [core] Notices about deprecated dl() (so stop using it)
2008-08-16 14:06:27 +00:00
Marc Delisle
544831fda7
patch #2007196 , Typos in comments, thanks to knittl - knittl
2008-07-01 19:21:28 +00:00
Marc Delisle
afbb2a9dc2
protection against XSS when register_globals is on and .htaccess has no effect
2008-06-21 15:01:27 +00:00
Sebastian Mendel
df216c95ec
cache table information
2008-05-09 13:38:03 +00:00
Sebastian Mendel
fa21fe3ea5
make the database list more magic:
...
load/fetch only if really required
use SPL ArrayObject to behave like an array
2008-05-09 10:41:16 +00:00
Marc Delisle
4d4ec9ccc9
change querying of triggers in conformity with the example in MySQL manual
2008-04-26 15:18:12 +00:00
Marc Delisle
4bb9cdf1b3
PMA_DBI_get_definition()
2008-02-26 13:17:22 +00:00
Marc Delisle
2ffa06dfd6
[gui] Events management: minimal support on db structure page
2008-02-25 22:10:53 +00:00
Sebastian Mendel
801249f3a5
use function for caching
2008-01-22 07:29:08 +00:00
Sebastian Mendel
f33ea1151e
oops, of course cache per server
2008-01-21 14:40:32 +00:00
Sebastian Mendel
67b6618439
cache is_superuser info
2008-01-21 12:14:00 +00:00
Sebastian Mendel
6174b881c5
cache MySQL version info
2008-01-21 11:19:21 +00:00
Sebastian Mendel
bd501a302b
removed obsolete PMA_ENGINE_KEYWORD
2008-01-21 11:07:16 +00:00
Sebastian Mendel
e3672d6a5f
removed use charset_connection
2008-01-21 10:05:36 +00:00
Marc Delisle
ec408de34d
bug #1821264 [display] MaxTableList and INFORMATION_SCHEMA
2007-12-27 23:50:45 +00:00
Sebastian Mendel
7b97eaa6f0
added missing examples and some functionality
2007-12-19 15:22:36 +00:00
Marc Delisle
a4dfad8912
bug #1848889 [export] export trigger should use DROP TRIGGER IF EXISTS
2007-12-14 17:48:39 +00:00
Sebastian Mendel
b1939a554a
apply limit for max db/tale listed to SHOW also;
...
raised minimum MySQL version in case of error to 5.0.15;
there is only utf8 in PMA 3;
2007-12-13 14:57:25 +00:00
Sebastian Mendel
560c6d4f6f
config option to disable use of information_schema (if ok backport to QA_2_11)
2007-12-13 10:07:01 +00:00
Marc Delisle
c7ba1bb032
bug #1832285 mysql DBI does not handle when control user connection fails
2007-12-09 13:06:21 +00:00