8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 13:23:02 +01:00

Backported fix for CORE-5651: Problem migrating users to V3.0

This commit is contained in:
AlexPeshkoff 2017-11-01 14:32:46 +03:00
parent b5a80a4e11
commit 931dc588d5

View File

@ -46,7 +46,7 @@ for select rdb$user_name, rdb$first_name, rdb$middle_name, rdb$last_name, rdb$ui
into :usr, :frst, :mddl, :lst, :uid, :gid, :passwd into :usr, :frst, :mddl, :lst, :uid, :gid, :passwd
do begin do begin
-- basic fields -- basic fields
sql = 'create or alter user ' || usr || ' password ''' || passwd || ''''; sql = 'create or alter user "' || usr || '" password ''' || passwd || '''';
if (frst is not null) then sql = sql || ' firstname ''' || frst || ''''; if (frst is not null) then sql = sql || ' firstname ''' || frst || '''';
if (mddl is not null) then sql = sql || ' middlename ''' || mddl || ''''; if (mddl is not null) then sql = sql || ' middlename ''' || mddl || '''';
if (lst is not null) then sql = sql || ' lastname ''' || lst || ''''; if (lst is not null) then sql = sql || ' lastname ''' || lst || '''';