File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1086,6 +1086,122 @@ public function workspaceExportFiltersData()
10861086 ],
10871087 ],
10881088 ],
1089+ // test what happens when whereColumn is empty
1090+ 'whereColumnEmpty ' => [
1091+ [
1092+ 'whereColumn ' => '' ,
1093+ 'whereValues ' => ['' ],
1094+ 'whereOperator ' => 'ne ' ,
1095+ 'columns ' => [
1096+ [
1097+ 'source ' => 'id ' ,
1098+ 'type ' => 'integer ' ,
1099+ ],
1100+ [
1101+ 'source ' => 'name ' ,
1102+ 'type ' => 'varchar ' ,
1103+ ],
1104+ [
1105+ 'source ' => 'city ' ,
1106+ 'type ' => 'varchar ' ,
1107+ ],
1108+ [
1109+ 'source ' => 'sex ' ,
1110+ 'type ' => 'varchar ' ,
1111+ ],
1112+ ],
1113+ ],
1114+ [
1115+ [
1116+ '4 ' ,
1117+ 'miro ' ,
1118+ 'BRA ' ,
1119+ 'male ' ,
1120+ ],
1121+ [
1122+ '1 ' ,
1123+ 'martin ' ,
1124+ 'PRG ' ,
1125+ 'male ' ,
1126+ ],
1127+ [
1128+ '2 ' ,
1129+ 'klara ' ,
1130+ 'PRG ' ,
1131+ 'female ' ,
1132+ ],
1133+ [
1134+ '3 ' ,
1135+ 'ondra ' ,
1136+ 'VAN ' ,
1137+ 'male ' ,
1138+ ],
1139+ [
1140+ '5 ' ,
1141+ 'hidden ' ,
1142+ '' ,
1143+ 'male ' ,
1144+ ],
1145+ ],
1146+ ],
1147+ // test what happens when whereColumn is null
1148+ 'whereColumnNull ' => [
1149+ [
1150+ 'whereColumn ' => null ,
1151+ 'whereValues ' => ['' ],
1152+ 'whereOperator ' => 'ne ' ,
1153+ 'columns ' => [
1154+ [
1155+ 'source ' => 'id ' ,
1156+ 'type ' => 'integer ' ,
1157+ ],
1158+ [
1159+ 'source ' => 'name ' ,
1160+ 'type ' => 'varchar ' ,
1161+ ],
1162+ [
1163+ 'source ' => 'city ' ,
1164+ 'type ' => 'varchar ' ,
1165+ ],
1166+ [
1167+ 'source ' => 'sex ' ,
1168+ 'type ' => 'varchar ' ,
1169+ ],
1170+ ],
1171+ ],
1172+ [
1173+ [
1174+ '4 ' ,
1175+ 'miro ' ,
1176+ 'BRA ' ,
1177+ 'male ' ,
1178+ ],
1179+ [
1180+ '1 ' ,
1181+ 'martin ' ,
1182+ 'PRG ' ,
1183+ 'male ' ,
1184+ ],
1185+ [
1186+ '2 ' ,
1187+ 'klara ' ,
1188+ 'PRG ' ,
1189+ 'female ' ,
1190+ ],
1191+ [
1192+ '3 ' ,
1193+ 'ondra ' ,
1194+ 'VAN ' ,
1195+ 'male ' ,
1196+ ],
1197+ [
1198+ '5 ' ,
1199+ 'hidden ' ,
1200+ '' ,
1201+ 'male ' ,
1202+ ],
1203+ ],
1204+ ],
10891205 ];
10901206 }
10911207
You can’t perform that action at this time.
0 commit comments