Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_CSV.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | |
111 | 111 | $params['sep'] = new Parameter( 'sep' ); |
112 | 112 | $params['sep']->setMessage( 'smw-paramdesc-csv-sep' ); |
113 | | - $params['sep']->setDefault( $this->m_sep ); |
| 113 | + $params['sep']->setDefault( ',' ); |
114 | 114 | |
115 | 115 | return $params; |
116 | 116 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -340,6 +340,7 @@ |
341 | 341 | $sql_options = array( 'LIMIT' => $query->getLimit() + 1, 'OFFSET' => $query->getOffset() ); |
342 | 342 | $res = $this->m_dbs->select( $this->m_dbs->tableName( $qobj->jointable ) . " AS $qobj->alias" . $qobj->from, "COUNT(DISTINCT $qobj->alias.smw_id) AS count", $qobj->where, 'SMW::getQueryResult', $sql_options ); |
343 | 343 | $row = $this->m_dbs->fetchObject( $res ); |
| 344 | + |
344 | 345 | $count = $row->count; |
345 | 346 | $this->m_dbs->freeResult( $res ); |
346 | 347 | |