Commit ccd05b52 authored by Stephane Crozat's avatar Stephane Crozat

Fix : using lower case only for view names

parent 4fa7a9c6
......@@ -26,7 +26,7 @@ class DB {
public function apiList($semester, $year) {
$sql = 'SELECT *
FROM vApi
FROM vapi
WHERE semester=:semester AND year=:year';
$st = $this->conn->prepare($sql);
$st->bindValue(':semester',$semester,PDO::PARAM_STR);
......
......@@ -47,7 +47,7 @@ CASE WHEN ap.code<10 THEN '000'||ap.code WHEN ap.code>=10 THEN '00'||ap.code END
ap.name, ap.year, ap.semester,
TO_CHAR(ap.dbegin,'TMday FMDD TMmonth') AS dbegin, TO_CHAR(ap.dend,'TMday FMDD TMmonth') AS dend,
ap.size, ap.ects, ap.mail
FROM api ap
FROM api ap
ORDER BY ap.year, ap.semester, ap.dbegin, ap.dend, ap.code;
CREATE OR REPLACE VIEW vSubscription AS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment