I'll second what meadowlark says.
I started out my beans indoors then began putting them out during the day and bringing them in at night (early in the season our nights tend to be cold). They didn't look happy at all. Eventually I found an article saying that beans wouldn't tolerate high night time temps - I think perhaps 18 degrees C was the max but I'm not certain. Anyway, indoors is probably over 18 degrees at night so I started popping them in an unheated greenhouse at night instead of indoors and they romped away.
More info in this article which explains that the warming climate can take beans off the table for 50% of growing areas by 2050.
"The researchers focused on night temperatures because common beans, which are a primary source of protein for over 400 million people, can produce viable pollen only if the nights are cool. They often do best at raised elevations, where nighttime temperatures reach no higher than 18 degrees Celsius (around 64 degrees Fahrenheit)."
New strains of beans that beat the heat could do more than protect food security; they could even expand into new territories
www.scientificamerican.com