"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/dbinfo/DITableInfo.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.

DITableInfo.java  (hsqldb-2.7.1):DITableInfo.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 47 skipping to change at line 47
import org.hsqldb.map.ValuePool; import org.hsqldb.map.ValuePool;
import org.hsqldb.resources.ResourceBundleHandler; import org.hsqldb.resources.ResourceBundleHandler;
/** /**
* Provides extended information about HSQLDB tables and their * Provides extended information about HSQLDB tables and their
* columns/indices. <p> * columns/indices. <p>
* *
* Current version has been reduced in scope.<p> * Current version has been reduced in scope.<p>
* *
* @author Campbell Burnet (campbell-burnet@users dot sourceforge.net) * @author Campbell Burnet (campbell-burnet@users dot sourceforge.net)
* @version 2.2.7 * @version 2.7.2
* @since 1.7.2 * @since 1.7.2
*/ */
final class DITableInfo { final class DITableInfo {
// related to DatabaseMetaData // related to DatabaseMetaData
int bestRowTemporary = 0; int bestRowTemporary = 0;
int bestRowTransaction = 1; int bestRowTransaction = 1;
int bestRowSession = 2; int bestRowSession = 2;
int bestRowUnknown = 0; int bestRowUnknown = 0;
int bestRowNotPseudo = 1; int bestRowNotPseudo = 1;
skipping to change at line 131 skipping to change at line 131
/** /**
* Retrieves the scope of the best row identifier. <p> * Retrieves the scope of the best row identifier. <p>
* *
* This implements the rules described in * This implements the rules described in
* DatabaseInformationMain.SYSTEM_BESTROWIDENTIFIER. <p> * DatabaseInformationMain.SYSTEM_BESTROWIDENTIFIER. <p>
* *
* @return the scope of the best row identifier * @return the scope of the best row identifier
*/ */
Integer getBRIScope() { Integer getBRIScope() {
return (table.isWritable()) ? ValuePool.getInt(bestRowTemporary) return (table.isWritable()) ? ValuePool.getInt(bestRowTransaction)
: ValuePool.getInt(bestRowSession); : ValuePool.getInt(bestRowSession);
} }
/** /**
* Retrieves the simple name of the specified column. <p> * Retrieves the simple name of the specified column. <p>
* *
* @param i zero-based column index * @param i zero-based column index
* @return the simple name of the specified column. * @return the simple name of the specified column.
*/ */
String getColName(int i) { String getColName(int i) {
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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