Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to skip mysql.lambda_async for testing locally (without Aurora) #137

Closed
kaihendry opened this issue Aug 7, 2019 · 1 comment
Closed

Comments

@kaihendry
Copy link
Contributor

I can't test my local database since we depend on mysql.lambda_async

I tried creating a stub:

delimiter $$


create procedure mysql.lambda_async()

BEGIN
select sleep(1);
end $$

delimiter ;


But that results with DBD::mysql::db do failed: Not allowed to return a result set from a trigger with mysql:5.7.

https://media.dev.unee-t.com/2019-08-07/trigger.txt

@kaihendry
Copy link
Contributor Author

Figured out how to stub mysql.lambda_async with thanks to https://console.aws.amazon.com/support/cases?region=ap-southeast-1#/6350403881/en

	delimiter $$
	
	create procedure mysql.lambda_async(IN functionName VARCHAR(1600), IN inputPayload VARCHAR(65535))
	BEGIN
select sleep(1) into @a;
end $$
	
	delimiter ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant