The problem is that mysqli_fields_meta returns orgtable as lowercase
making phpMyAdmin treat it as alias later nad finding no fields for
original table.
Fixes issue #11816
Signed-off-by: Michal Čihař <michal@cihar.com>
Use CURRENT_USER instead, which would give the actual user defined in User accounts table
Fix#12769
ChangeLog entry for #12769
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Use *_real_escape string functions provided by connectors to escape strings while exporting
Fix#12453
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Conflicts:
libraries/server_privileges.lib.php
In my testing the session/cache access is slower than fetching single
value from MySQL and calculating the values.
Also the caching would need some logic for invalidation as the server
can be upgraded or configuration changed.
Fixes#11924
Signed-off-by: Michal Čihař <michal@cihar.com>
We want to achieve same thing in both cases - backtrace which is
stripped from sensitive information, has reasonable size and can be
read. Sharing the code will make it easier to fix possible problems and
also will make both cases behave consistent.
Signed-off-by: Michal Čihař <michal@cihar.com>
The intval function does return 0 for empty string, so we really do not
have to special case here.
Issue #12279
Signed-off-by: Michal Čihař <michal@cihar.com>
When $cfg['DBG']['sql'] is enabled, we used to store full backtrace in
session. This includes DBI objects which then can cause problems on
session start.
Issue #12229
Signed-off-by: Michal Čihař <michal@cihar.com>
We really do not care about traceback or parameters in this case, all we
need is to display the message coming from PHP.
Signed-off-by: Michal Čihař <michal@cihar.com>
Set namespace on DbQbe.
Set namespace to 'DbSearch'.
Split Advisor.class.php file.
Change Advisor namespace.
Rename DbQbe class and file.
Set namespace on DisplayResults.
Set namespace on Error.
Use namespace for ErrorHandler.
Add class autoloader.
Change ErrorHandler filename.
Remove some require.
Update Config namespace path.
Update PMA_Util to PMA\libraries\Util.
Rename Font and File classes files.
Use namespace for Footer.
Set namespace in all libraries classes.
Namespace OutputBuffering.
Export SubPartition.
Rename Partition file.
Namespace PDF.
Namespace RecentFavoriteTable.
Replace PMA_Response by Response and PMA_Message by Message.
Update uses and calls.
Fix unit tests.
Fix SqlParser autoload.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>