@@ -260,7 +260,7 @@ suite<"INSERT Integration"> insert_integration_suite = [] {
260260
261261 expect (db->execute (drop_table (trade{}).if_exists ().then ().create_table (trade{})).has_value ());
262262
263- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
263+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
264264 trade row;
265265 row.code_ = code;
266266 row.type_ = " Stock" ;
@@ -327,7 +327,7 @@ suite<"SELECT Integration"> select_integration_suite = [] {
327327 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
328328 expect (db->execute (delete_from (trade{})).has_value ());
329329
330- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
330+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
331331 trade row;
332332 row.code_ = code;
333333 row.type_ = " Stock" ;
@@ -400,7 +400,7 @@ suite<"SELECT Integration"> select_integration_suite = [] {
400400
401401 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
402402 expect (db->execute (delete_from (trade{})).has_value ());
403- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }}) {
403+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }}) {
404404 trade row;
405405 row.code_ = code;
406406 row.type_ = " Stock" ;
@@ -456,8 +456,8 @@ suite<"SELECT Integration"> select_integration_suite = [] {
456456
457457 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
458458 expect (db->execute (delete_from (trade{})).has_value ());
459- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" },
460- varchar_type<32 >{" AMZN" }, varchar_type<32 >{" TSLA" }}) {
459+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" },
460+ varchar_type<32 >{" AMZN" }, varchar_type<32 >{" TSLA" }}) {
461461 trade row;
462462 row.code_ = code;
463463 row.type_ = " Stock" ;
@@ -556,7 +556,7 @@ suite<"DELETE Integration"> delete_integration_suite = [] {
556556
557557 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
558558 expect (db->execute (delete_from (trade{})).has_value ());
559- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
559+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
560560 trade row;
561561 row.code_ = code;
562562 row.type_ = " Stock" ;
@@ -614,7 +614,7 @@ suite<"WHERE Operator Syntax Integration"> where_operator_integration_suite = []
614614
615615 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
616616 expect (db->execute (delete_from (trade{})).has_value ());
617- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
617+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
618618 trade row;
619619 row.code_ = code;
620620 row.type_ = " Stock" ;
@@ -639,7 +639,7 @@ suite<"WHERE Operator Syntax Integration"> where_operator_integration_suite = []
639639
640640 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
641641 expect (db->execute (delete_from (trade{})).has_value ());
642- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
642+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
643643 trade row;
644644 row.code_ = code;
645645 row.type_ = " Stock" ;
@@ -665,7 +665,7 @@ suite<"WHERE Operator Syntax Integration"> where_operator_integration_suite = []
665665
666666 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
667667 expect (db->execute (delete_from (trade{})).has_value ());
668- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
668+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
669669 trade row;
670670 row.code_ = code;
671671 row.type_ = " Stock" ;
@@ -694,7 +694,7 @@ suite<"WHERE Operator Syntax Integration"> where_operator_integration_suite = []
694694
695695 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
696696 expect (db->execute (delete_from (trade{})).has_value ());
697- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
697+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
698698 trade row;
699699 row.code_ = code;
700700 row.type_ = " Stock" ;
@@ -722,7 +722,7 @@ suite<"WHERE Operator Syntax Integration"> where_operator_integration_suite = []
722722
723723 expect (db->execute (create_table (trade{}).if_not_exists ()).has_value ());
724724 expect (db->execute (delete_from (trade{})).has_value ());
725- for (auto const code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
725+ for (auto const & code : {varchar_type<32 >{" AAPL" }, varchar_type<32 >{" GOOGL" }, varchar_type<32 >{" MSFT" }}) {
726726 trade row;
727727 row.code_ = code;
728728 row.type_ = " Stock" ;
0 commit comments