1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

4633 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
c348bc2e60 Add collation description for uca1400 collations
For example: utf8mb4_uca1400_ai_ci

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-10-23 16:22:00 -03:00
Maurício Meneghini Fauth
99e7f2db71 Disable Events page when event scheduler is disabled
This avoids the following server error:
  1577 - Cannot proceed, because event scheduler is disabled

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-10-16 15:11:19 -03:00
Maurício Meneghini Fauth
3adaad0c64 Backport DatabaseInterface::quoteString to QA_5_2
This makes easier to merge new code into master branch.
Moves the responsability of quoting to the driver instead of the
DatabaseInterface class. Uses PHP 8.6's mysqli::quote_string()
if available.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-10-01 11:32:48 -03:00
Arpit Jain
67cf87d345 Escape the username in the user group lookup
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-09-30 20:51:43 -03:00
Maurício Meneghini Fauth
63949c36bd Fix WebAuthn\CustomServer credential save
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-09-28 22:18:20 -03:00
Maurício Meneghini Fauth
7d5d6e97a5 Merge pull request #20423 from M393/db-structure-max-timestamps
Fix db structure summary timestamp
2026-09-15 16:23:56 -03:00
Maximilian Krög
1470008297 Also use the max value for the last check summary value
Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-09-15 09:12:21 +02:00
Maurício Meneghini Fauth
f88771d657 Merge pull request #20356 from MoonE/csv-table-size
Csv table size
2026-09-14 13:56:03 -03:00
Liviu-Mihail Concioiu
9a87a0f992 Replace Name with TABLE_NAME
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-09-14 13:38:43 -03:00
Liviu-Mihail Concioiu
8525d24e09 Fix search of INET4 with = operator
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
Co-authored-by: Richard Brinkman <richardbrinkman@no-reply.github.com>
2026-09-07 00:51:20 +02:00
Maximilian Krög
8d13cd103b Fix db structure update summary timestapm
This should be the max timestamp, instead it was the min.

Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-09-04 23:56:46 +02:00
William Desportes
2345f83d7d Merge #20426 - Fix #20425 - OOM error when creating a view
Pull-request: #20426
Fixes: #20425
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-09-03 23:40:21 +02:00
William Desportes
e81c6111e0 Merge #20315 - Fix #19841 - Strip port from host when linking to user privileges in processes list
Pull-request: #20315
Fixes: #19841
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-09-03 23:32:41 +02:00
Liviu-Mihail Concioiu
3b46e5b869 Fix Uncaught ReferenceError: CodeMirror is not defined
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-09-03 22:22:35 +02:00
Kamil Tekiela
80638e8371 Add LIMIT 0 when fetching metadata
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-08-17 14:09:48 +01:00
Kamil Tekiela
6c1568b15b Move getColumnMapFromSql into the method
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-08-17 13:33:51 +01:00
Maurício Meneghini Fauth
728281dabf Merge pull request #20401 from M393/export-sql-perf
Don't do an unnecessary query per table when exporting sql
2026-08-08 21:26:49 -03:00
Maximilian Krög
82444c52e1 Don't do an unnecessary query per table when exporting sql
Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-08-09 01:55:14 +02:00
Maurício Meneghini Fauth
f5f8a38d44 Merge pull request #20397 from liviuconcioiu/20395
Fix #20395 - Add support for INET4 data type
2026-08-08 19:12:56 -03:00
Maximilian Krög
6efd29676f Fix editing column structure for varchar with empty string as default
Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-08-04 21:13:50 +02:00
Liviu-Mihail Concioiu
cb6f602a87 Add support for INET4 data type
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-07-26 11:09:58 +02:00
Liviu-Mihail Concioiu
494b99c00b Add Lao to LanguageManager
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-07-23 03:34:29 +02:00
Maurício Meneghini Fauth
a016b28c7a Merge pull request #20372 from MoonE/add-limit-1
Add LIMIT 1 to some queries
2026-07-18 14:56:33 -03:00
Maurício Meneghini Fauth
f4b28bcebf Merge pull request #20353 from MoonE/foreigh-key-display-cache
Cache foreign key display values and add limit 1 to query
2026-07-18 14:54:25 -03:00
Maximilian Krög
0b055dd889 Fix mysql documentation links
Remove versions below 5.7 as they redirect to the latest version
(currently 9.7).
Add a special condition for server-error-reference as it lives at a
different section of the docs.
Support links to MySQL version 9.

Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-07-14 12:01:52 +02:00
Maximilian Krög
32e55da313 Add LIMIT 1 to some queries
This is mostly useful for tables that have no unique key.
Except for the chnage in InsertEdit::getDisplayValueForForeignTableColumn, which is relevant for multi-column foreign keys.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-12 14:32:44 +02:00
William Desportes
c05036387a Merge #20344 - Partially fixes #20332 - Fix compressed columns not detected in MariaDB
Pull-request: #20344
Signed-off-by: William Desportes <williamdes@wdes.fr>
2026-07-11 21:38:55 +02:00
Towy
8fea06d16b Fix #18304 - Avoid TypeError when adding a column without index data
CreateAddField::getIndexedColumns() passed the raw $_POST index values
straight to json_decode(). When a column is added through a request that
does not submit the primary_indexes, indexes, unique_indexes,
fulltext_indexes and spatial_indexes fields (for example when adding a
primary key column from the normalization page), those keys are
undefined. Under strict_types this raised "json_decode(): Argument #1
($json) must be of type string, null given" together with "Undefined
array key" warnings, and the column was not added.

Default each of these request values to an empty JSON array so that
adding a column keeps working when no index information is provided.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Towy <towy@airreps.link>
2026-07-09 18:34:22 +02:00
Maximilian Krög
b524b3ffef Cache foreign key display values
Avoid repeated sql queries for foreighn keys, speed things up
when duplicate key values are in the result set to display.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:19:41 +02:00
Maximilian Krög
33315fa209 Add missing limit 1 to foreign key display query
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:19:38 +02:00
Maximilian Krög
371ea13855 Remove unnecessary engine check
getValuesForCsvTable is only called when ENGINE is CSV.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:04:42 +02:00
Maximilian Krög
7ff2617b05 Use CONCAT instead of CONCAT_WS
Should be slightly faster.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:04:41 +02:00
Maximilian Krög
5c0f91fd95 Fix getting size of csv table with single quote in column name
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:04:41 +02:00
Maximilian Krög
8590891a08 Fix csv size calculating with multi-byte characters
CHAR_LENGTH counts the number of characters, LENGTH counts number of bytes.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:04:40 +02:00
Maximilian Krög
794260e1e0 Reformat sql for better readability
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2026-07-05 00:04:34 +02:00
Maurício Meneghini Fauth
3afcd48e17 Merge pull request #20339 from liviuconcioiu/20336
Fix #20336 - Add support for UUID_v4() and UUID_v7()
2026-06-29 20:47:53 -03:00
Liviu-Mihail Concioiu
940259e9ba Fix compressed columns not detected in MariaDB
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-06-28 13:25:08 +02:00
Maurício Meneghini Fauth
959afcce2e Fix PSR-7 host header parsing
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-06-26 03:44:32 -03:00
Liviu-Mihail Concioiu
0ffe1d0290 Fix bugs
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-06-24 17:45:19 +02:00
Liviu-Mihail Concioiu
71f0a6a296 Fix phpcs
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-06-24 14:02:30 +02:00
Liviu-Mihail Concioiu
e0b181cde3 Add support for UUID_v4() and UUID_v7()
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-06-24 13:47:04 +02:00
Maximilian Krög
a53ab15d3c Sort autocomplete items in list
Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
2026-06-17 17:21:39 +02:00
Maurício Meneghini Fauth
9e2c4ee923 Add unit tests for Header::getMessage()
Backport tests from 6b57013203

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2026-05-25 21:58:39 -03:00
Dennis Vorobyov
366d165982 Fix #19841 - Strip port from host when linking to user privileges in processes list
The Host column of SHOW PROCESSLIST contains the client connection address
in "hostname:port" format (e.g., localhost:64776). Passing this directly as
the hostname URL parameter to /server/privileges causes the user lookup to
fail, since mysql.user.Host stores bare hostnames without port numbers.

Strip the trailing port suffix before building the privileges link URL.
The Host column display is unchanged.

Signed-off-by: Dennis Vorobyov <roadhero@gmail.com>
2026-05-25 15:52:30 +01:00
Eyüp Can Akman
bd81cf82be Simplify isVarchar check
The !is_numeric guard is redundant; the round-trip already covers
non-numeric inputs since (int) of a non-numeric string is 0.

Signed-off-by: Eyüp Can Akman <eyupcanakman@gmail.com>
2026-04-30 18:56:07 +03:00
Eyüp Can Akman
ce12a87858 Fix #20284 - Preserve numeric strings in XML imports
When the XML file embeds the table structure, $analyses is null and
buildSql() falls back to is_numeric() to decide whether to quote. That
strips quotes from values like "01234", which silently drops the leading
zero on a varchar column and causes a duplicate-key error if the table
also contains "1234".

Add a roundtrip check: a value is still treated as numeric only when
casting it to int or float gives back the original string. "01234",
"1e10" and similar fail the roundtrip and stay quoted; plain integers
like 1 and 1234 keep their existing unquoted form.

Signed-off-by: Eyüp Can Akman <eyupcanakman@gmail.com>
2026-04-28 17:26:03 +03:00
Maurício Meneghini Fauth
9b467fd4ef Merge pull request #20282 from predictor2718/fix/19084-export-data-only-create-db
Fix #19084 - Skip CREATE DATABASE when exporting data only
2026-04-25 18:35:19 -03:00
Maurício Meneghini Fauth
de4b89e764 Merge pull request #20281 from predictor2718/fix/19939-csv-import-varchar-too-long
Fix #19939 - Use TEXT instead of VARCHAR when CSV column exceeds max …
2026-04-25 18:09:36 -03:00
Maurício Meneghini Fauth
837e7466dd Merge pull request #20278 from predictor2718/fix/19225-wrong-row-count-alias
Fix #19225 - Fix wrong row count when column alias shadows existing column name
2026-04-22 20:00:14 -03:00
Maurício Meneghini Fauth
e09a1f7b15 Fix server selection icon alignment in home page
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-04-21 16:45:09 -03:00