New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leading space not shown in a CHAR column when browsing table #16095
Comments
|
I agree there's a problem here. It looks to me like only the first leading space is truncated. Here, 'bar' should have one space in front of it, and 'baz' has several. Looking at the generated HTML, I see This goes back at least as far as 4.6.6, but since that version isn't supported anymore our fix would target the QA_5_0 branch for the 5.0.x release line. You can get our packaged version from the Ubuntu PPA which will also work on Debian. |
|
#15236 for Debian and #15515 for Ubuntu (#15515 (comment)) |
|
Thank you both for your prompt replies. I'm happy that this minor issue targets the latest release. The server has buster-backports in its sources.list and is updates & upgrades via a daily cron job. So, if i understand #15236 (comment) correctly, I should already be on the latest stable release. Perhaps I should have commented in #15236. |
The latest 4.9 release is available. I am glad that you are ready to upgrade ;) |
|
You did the right thing opening a new issue here, it's easier to track this way. I don't really know how you had the phpMyAdmin 4.6.6, could you have downloaded the .deb file and installed that? You're using Debian 10 (Buster) which doesn't have any phpMyAdmin. The version you have is consistent with Debian 9 (Stretch), but that shouldn't have been offered to you. I suppose if you had recently upgraded your system from Debian 9 to 10, then it could be an old package, but then you wouldn't be getting any updates, and the -4 update (which is the most recent) was published in 2017 so this seems to be the most likely explanation to me. I believe the way the backports work is that they're pinned with a very low priority, so they wouldn't automatically upgrade you to the backport version of phpMyAdmin. I believe you should use a command like Regardless of which version you're running, this is indeed currently a bug with all versions and hopefully it will get fixed soon. There is not yet a fix in the release pipeline but if it's an easy fix hopefully we can get it in the next version. |
|
@bacherecom |
|
@williamdes ??? |
|
Yes I initially installed Debian 9 and did a dist-upgrade to 10. root@hhgp:~# apt-get -t buster-backports install phpmyadmin Reading package lists... Done E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources root@hhgp:~# apt-get -t buster install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done phpmyadmin is already the newest version (4:4.6.6-4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@hhgp:~# apt-get -t stretch install phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done phpmyadmin is already the newest version (4:4.6.6-4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
|
I believe this error indicates that backports is not configured for your system. Do you see a line about backports in |
root@hhgp:~# cat /etc/apt/sources.list.d/backports.list deb http://ftp.debian.org/debian stretch-backports main contrib non-free # deb http://mirrors.linode.com/debian stretch-backports main contrib non-free root@hhgp:~# Same with either commented out. |
|
oops - will try buster... |
|
After installing with -t buster-backports, trying to get to the login page I got the message A bit of googlinng told me of a dependency on >=php7.1. I found I was running 7.0, but 7.3 was also installed. However apache module php7.3 was not. apt install libapache2-mod-php7.3
a2dismod php7.0
a2enmod php7.3
systemctl restart apache2and aok. |
|
Maybe we need this option in the CSS for the span: white-space:pre; |
I agree, but it could have rendering effects on text contents. |
|
Yes, not sure if there can be a universal solution. |
Signed-off-by: Petr Duda <petrduda@seznam.cz>
|
Hello, may I suggest the following solution? |
Signed-off-by: Petr Duda <petrduda@seznam.cz>
…umeric columns Signed-off-by: Petr Duda <petrduda@seznam.cz>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Hi @petrduda -- phpMyAdmin SQL Dump
-- version 5.1.0-dev
-- https://www.phpmyadmin.net/
--
-- Hôte : mariadb104.williamdes.local:3306
-- Généré le : jeu. 12 nov. 2020 à 21:43
-- Version du serveur : 10.4.10-MariaDB-1:10.4.10+maria~bionic
-- Version de PHP : 8.0.0-dev
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `leading-space` (
`id` int(11) NOT NULL,
`ord` char(4) DEFAULT 'th',
`txt` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `leading-space` (`id`, `ord`, `txt`) VALUES
(1, ' 1st', ''),
(2, ' 2nd', ''),
(3, ' 3rd', ''),
(4, ' 4th', ''),
(5, ' 5th', ''),
(6, ' 6th', ''),
(7, ' 7th', ''),
(8, ' 8th', ''),
(9, NULL, ' 4 spaces\r\n 2 spaces, 1 new line');
ALTER TABLE `leading-space`
ADD PRIMARY KEY (`id`);
ALTER TABLE `leading-space`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
COMMIT; |
Signed-off-by: Petr Duda <petrduda@seznam.cz>
|
Hello @williamdes, thank you, that is not expected, may I suggest the following fix? |
Hello @petrduda |



Describe the bug
I have a table with a CHAR(4) column where the contents are right aligned. Some rows have a leading space, but phpmyadmin shows the column left aligne.
To Reproduce
Expected behaviour
phpmyadmin to show leading space.
Screenshots
If applicable, add screenshots to help explain your problem.
Server configuration
Client configuration
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: