Project

General

Profile

Bug #17315

Updated by Krzysztof Putyra 8 months ago

**Observed behavior** 

 The following command does not encrypt data: 
 <pre> 
 10.sql=SELECT 'Hello world!' AS '_encrypt=AES-128' 
 </pre> 

 The following command does not print 'end': 
 <pre> 
 10.sql=SELECT 'Hello world!' AS _encrypt=AES-128, 'end' 
 </pre> 

 The following command raises a DB exception: 
 <pre> 
 10.sql=SELECT 'Hello world AS _encrypt=AES-128' 
 </pre> 

 **Reason** 

 For the first behavior: 
 * column names are parsed in @Report::splitColumnNames@ @Report::renderColumn@ and searched for @=@ character, but the name is tested against @encrypt@ instead of @_encrypt@ 

 For the second and third behavior: 
 * Inside @Database::prepareExecute@ the statement is split at @AS _encrypt=@ and everything that follows is forgotten. 

Back