mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
45808b92f3
commit
7c336fc6b1
3 changed files with 6 additions and 3 deletions
|
|
@ -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 ";",\
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue