Skip to content

Commit

Permalink
[NCN-440] Add deterministic declaration to stored function
Browse files Browse the repository at this point in the history
  • Loading branch information
nkissebe committed May 9, 2024
1 parent 386f22f commit 8ea5276
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public function up()

$createSP = "CREATE FUNCTION hash_access_code (campaign_id INT(11), user_name VARCHAR(150)) ".
"RETURNS CHAR(64) ".
"DETERMINISTIC ".
"READS SQL DATA ".
"BEGIN ".
" SET @cs = (SELECT secret FROM `$campaign` WHERE id=campaign_id); ".
" SET @hs = (SELECT `value` FROM `$config` WHERE `key`='secret' AND `scope`='hub'); ".
Expand Down

0 comments on commit 8ea5276

Please sign in to comment.