Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
sdb010.tcl
Package: mysql-3.23.35.tar.gz [view]
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:
MySQL
Development Platform:
Visual C++
- # See the file LICENSE for redistribution information.
- #
- # Copyright (c) 2000
- # Sleepycat Software. All rights reserved.
- #
- # $Id: sdb010.tcl,v 11.4 2000/08/25 14:21:53 sue Exp $
- #
- # Subdatabase Test 10 {access method}
- # Test of dbremove
- proc subdb010 { method args } {
- global errorCode
- source ./include.tcl
- set args [convert_args $method $args]
- set omethod [convert_method $method]
- puts "Subdb010: Test of DB->remove()"
- if { [is_queue $method] == 1 } {
- puts "tSubdb010: Skipping for method $method."
- return
- }
- cleanup $testdir NULL
- set testfile $testdir/subdb010.db
- set testdb DATABASE
- set db [eval {berkdb_open -create -truncate -mode 0644} $omethod
- $args $testfile $testdb]
- error_check_good db_open [is_valid_db $db] TRUE
- error_check_good db_close [$db close] 0
- error_check_good file_exists_before [file exists $testfile] 1
- error_check_good db_remove [berkdb dbremove $testfile $testdb] 0
- # File should still exist.
- error_check_good file_exists_after [file exists $testfile] 1
- # But database should not.
- set ret [catch {eval berkdb_open $omethod $args $testfile $testdb} res]
- error_check_bad open_failed ret 0
- error_check_good open_failed_ret [is_substr $errorCode ENOENT] 1
- puts "tSubdb010 succeeded."
- }