<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Guillaume splendid - tx! ./k<br>
<br>
On 17/11/2014 22:53, Guillaume Lelarge wrote:<br>
</div>
<blockquote
cite="mid:CAECtzeWLZ2tJDg=-Ax3Rj_LpAhtVaVaAbi1Gh+VCxVEAnu2KiA(at)mail(dot)gmail(dot)com"
type="cite">
<p dir="ltr">Le 17 nov. 2014 22:49, "Klaus Hofeditz
]project-open[" <<a moz-do-not-send="true"
href="mailto:klaus(dot)hofeditz(at)project-open(dot)com">klaus(dot)hofeditz(at)project-open(dot)com</a>>
a écrit :<br>
><br>
> Hi guys, <br>
> I need to drop a view in order to alter a type of a
column: numeric(12,1) -> numeric(12,2): <br>
><br>
> ERROR: cannot alter type of a column used by a view or
rule DETAIL: rule _RETURN on view "TransTasksCube" depends on
column "billable_units"<br>
><br>
> Trying to delete it, I get: <br>
><br>
> projop=# drop view TransTasksCube;<br>
> ERROR: view "transtaskscube" does not exist<br>
><br>
> FYI: VIEW also shows up in table INFORMATION_SCHEMA.views:
<br>
><br>
> projop=# select table_name from INFORMATION_SCHEMA.views
where table_name like '%Trans%';<br>
> table_name<br>
> ----------------<br>
> TransTasksCube<br>
> (1 row)</p>
<p dir="ltr">You need double quotes because of the upper case
letters:</p>
<p dir="ltr">drop view "TransTasksCube";</p>
</blockquote>
<br>
</body>
</html>