org.h2.jdbc.JdbcSQLSyntaxErrorException: Values of types "TINYINT" and "BOOLEAN" are not comparable; SQL statement: select m1_0.id,m1_0.ativo,m1_0.crm,m1_0.email,m1_0.bairro,m1_0.cep,m1_0.cidade,m1_0.complemento,m1_0.logradouro,m1_0.numero,m1_0.uf,m1_0.especialidade,m1_0.nome,m1_0.telefone from medicos m1_0 where m1_0.ativo=true and m1_0.especialidade=? and m1_0.id not in(select c1_0.medico_id from consultas c1_0 where c1_0.data=? and c1_0.motivo_cancelamento is null) order by rand() fetch first 1 rows only [90110-214]
O projeto está aqui: https://github.com/Tleofreitas/Api_Java_Alura.git