plugin/zip: fixed (thanks Dolik), PostgreSQL: PARTIAL_INDEX_

git-svn-id: svn://ultimatepp.org/upp/trunk@6162 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-07-01 10:24:53 +00:00
parent 45808b92f3
commit 7c336fc6b1
3 changed files with 6 additions and 3 deletions

View file

@ -82,7 +82,8 @@
#define PARTIAL_INDEX(cond) ATTRIBUTE("create index IDX_@x on @t(@c) where " cond ";", \
"drop index IDX_@x;")
#define PARTIAL_INDEX_(name, cond) ATTRIBUTE("create index IDXP_@x" #name " on @t(@c) where " cond ";", \
"drop index IDXP_@x" #name ";")
#ifndef REFERENCES
#define REFERENCES(x) ATTRIBUTE("alter table @t add constraint FK_@x foreign key "\
"(@c) references " #x ";",\

View file

@ -96,7 +96,7 @@ void UnZip::Create(Stream& _zip)
bool UnZip::IsEof() const
{
return eof || !zip || eof || error || zip->IsEof();
return eof || !zip || error || zip->IsEof();
}
bool UnZip::IsFolder() const

View file

@ -102,6 +102,8 @@ Zip::Zip()
Zip::Zip(Stream& out)
{
done = 0;
zip = NULL;
Create(out);
}
@ -130,7 +132,7 @@ bool FileZip::Finish()
void StringZip::Create()
{
zip.Create();
Zip::Create(zip);
}
String StringZip::Finish()