Skip to content
Permalink
Browse files

Issue #12: Get TDBConnection.GetSessionVariables running for SQLite, …

…with an empty list of variables for now
  • Loading branch information
ansgarbecker committed Jan 1, 2020
1 parent d91da37 commit 52692367b6db8d60606627211311ddf4c7ae5958
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/dbconnection.pas
@@ -2486,7 +2486,7 @@ procedure TDBConnection.DoBeforeConnect;
FSQLSpecifities[spCurrentUserHost] := 'SELECT CURRENT_USER()';
FSQLSpecifities[spAddColumn] := 'ADD COLUMN %s';
FSQLSpecifities[spChangeColumn] := 'CHANGE COLUMN %s %s';
FSQLSpecifities[spSessionVariables] := 'SHOW VARIABLES';
FSQLSpecifities[spSessionVariables] := 'SELECT null, null'; // Todo: combine "PRAGMA pragma_list" + "PRAGMA a; PRAGMY b; ..."?
FSQLSpecifities[spGlobalVariables] := 'SHOW GLOBAL VARIABLES';
FSQLSpecifities[spISTableSchemaCol] := 'TABLE_SCHEMA';
FSQLSpecifities[spUSEQuery] := '-- USE %s neither supported nor required'; // Cannot be empty without causing problems

0 comments on commit 5269236

Please sign in to comment.
You can’t perform that action at this time.