"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/rights/Right.java" between
hsqldb-2.7.1.zip and hsqldb-2.7.2.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

Right.java  (hsqldb-2.7.1):Right.java  (hsqldb-2.7.2)
/* Copyright (c) 2001-2022, The HSQL Development Group /* Copyright (c) 2001-2023, The HSQL Development Group
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* *
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
skipping to change at line 48 skipping to change at line 48
import org.hsqldb.error.Error; import org.hsqldb.error.Error;
import org.hsqldb.error.ErrorCode; import org.hsqldb.error.ErrorCode;
import org.hsqldb.lib.HashSet; import org.hsqldb.lib.HashSet;
import org.hsqldb.lib.OrderedHashSet; import org.hsqldb.lib.OrderedHashSet;
/** /**
* Represents the set of rights on a database object * Represents the set of rights on a database object
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* *
* @version 2.7.0 * @version 2.7.2
* @since 1.9.0 * @since 1.9.0
*/ */
public final class Right { public final class Right {
boolean isFull; boolean isFull;
boolean isFullSelect; boolean isFullSelect;
boolean isFullInsert; boolean isFullInsert;
boolean isFullUpdate; boolean isFullUpdate;
boolean isFullDelete; boolean isFullDelete;
boolean isFullReferences; boolean isFullReferences;
skipping to change at line 761 skipping to change at line 761
return true; return true;
} }
if (isFullSelect || isFullInsert || isFullUpdate || isFullDelete if (isFullSelect || isFullInsert || isFullUpdate || isFullDelete
|| isFullReferences || isFullTrigger) { || isFullReferences || isFullTrigger) {
return true; return true;
} }
boolean result = false; boolean result = false;
result |= (selectColumnSet != null && insertColumnSet.isEmpty()); result |= (selectColumnSet != null && !selectColumnSet.isEmpty());
result |= (insertColumnSet != null && insertColumnSet.isEmpty()); result |= (insertColumnSet != null && !insertColumnSet.isEmpty());
result |= (updateColumnSet != null && !updateColumnSet.isEmpty()); result |= (updateColumnSet != null && !updateColumnSet.isEmpty());
result |= referencesColumnSet != null result |= referencesColumnSet != null
&& !referencesColumnSet.isEmpty(); && !referencesColumnSet.isEmpty();
result |= triggerColumnSet != null && !triggerColumnSet.isEmpty(); result |= triggerColumnSet != null && !triggerColumnSet.isEmpty();
if (!result) { if (!result) {
return false; return false;
} }
HashSet set = new HashSet(); HashSet set = new HashSet();
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)