Skip to content

Instantly share code, notes, and snippets.

View abdallahsamehatinstabug's full-sized avatar

Abdallah Sameh abdallahsamehatinstabug

  • Instabug
View GitHub Profile
[
{
"state": {
"fields": {
"id": 18322372250,
"app_version": "2.0.5 (112412020)",
"current_view": "TodayView",
"locale": "en-EG",
"sdk_version": "15.1.1",
"density": "@3x",
SET @test = '- !ruby/hash:ActiveSupport::HashWithIndifferentAccess
key: app_version
operator: \'8\'
value:
- latest_release
- top_releases';
CALL yaml_to_json(@test, @result);
SELECT 'conditions:' as test, @result as result;
-- Enable recursion for MySQL stored procedures
SET SESSION max_sp_recursion_depth = 50;
DELIMITER $$
-- Cleanup existing procedures
DROP PROCEDURE IF EXISTS yaml_to_json$$
DROP PROCEDURE IF EXISTS parse_yaml_recursive$$
DROP PROCEDURE IF EXISTS extract_hash$$
DROP PROCEDURE IF EXISTS extract_list$$