mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Check empty strings as well on NULL
This commit is contained in:
@@ -24,7 +24,7 @@ class Csv_model extends CI_Model
|
||||
$sql .= "SELECT station_callsign, COL_MY_SOTA_REF, COL_QSO_DATE, COL_TIME_ON, COL_BAND, COL_MODE, COL_CALL, COL_SOTA_REF, COL_COMMENT
|
||||
FROM ".$this->config->item('table_name').
|
||||
" JOIN station_profile on station_profile.station_id = ".$this->config->item('table_name').".station_id".
|
||||
" WHERE (COL_SOTA_REF <> '' OR COL_MY_SOTA_REF <> '')";
|
||||
" WHERE (COALESCE(COL_SOTA_REF,NULL,'') != '' OR COALESCE(COL_MY_SOTA_REF,NULL,'') != '')";
|
||||
|
||||
if ($station_id != "All") {
|
||||
$sql .= ' and ' . $this->config->item('table_name'). '.station_id = ?';
|
||||
|
||||
Reference in New Issue
Block a user