1

InformixPlatformInformix11.70インストールで動作するようにEclipseLinkのデータベースサポートクラスを修正中です。

作業が必要な契約の1つは、次のコードで表されます。ドキュメントには、必要なものが説明されています。

/**
 * INTERNAL:
 * Indicates whether the platform supports local temporary tables.
 * "Local" means that several threads may create
 * temporary tables with the same name.
   [snip]
 */
 public boolean supportsLocalTempTables() {
     return true; // is this correct?
 }

/**
 * INTERNAL:
 * Indicates whether the platform supports global temporary tables.
 * "Global" means that an attempt to create temporary table with the same
 * name for the second time results in exception.
   [snip]
 * Note that this method is ignored in case supportsLocalTempTables() returns true.
 */
 public boolean supportsGlobalTempTables() {
     return false; // is this correct?
 }

私の感覚では、Informixは、たとえば、セッション1から名前が付けられた一時テーブルと、同じくセッション2から名前が付けられた一時テーブル作成する機能を実際にサポートしていると思うのでtrue、の実装から戻る必要があります。私の仮定は正しいですか?supportsLocalTempTables()FREDFRED

Informix 11.70 InfoCenterのトピックを調べましたが、具体的なものは何も見つかりませんでした。

4

1 に答える 1

3

はい。Informixの一時テーブルはセッションに対してローカルであり、セッションによってのみ表示されます。さらに、セッションが閉じると、そのすべての一時テーブルが削除されます。したがって、異なるセッションで、同じ名前の一時テーブルを作成できます。セッション間で一時テーブルへのアクセスを共有する方法はありません。

于 2013-03-01T01:45:19.963 に答える