ODBC standard database management system compliance testing
- Author
- YangXiaoDong
- Advisor
- LiYi
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 143
- Citations
- 2
- ODBC driver
- ODBC conformance level
- ODBC conformance test
- SQL conformance test
- interface conformance test
Abstract
With the development of the database technology and the wide application of the database systems, the ODBC conformance level gradually become an important standard to measure the quality and performance of the database management system. Consequently, the ODBC conformance tests paves the way for the application of the domestic database software.ODBC conformance test aims to test the SQL and ODBC conformity of the DBMS and its ODBC driver and verify the correctness and reasonableness of the SQL conformance level as well as the interface conformance level declared by the rhodbc. ODBC conformance test includes SQL conformance test and interface conformance test. In this dissertation, The Xugu database is a domestic RDBMS and its ODBC driver is named rhodbc.SQL conformance test is used to test the conformity for SQL92 grammar and semantic of the Xugu database and rhodbc by the supportability test of the SQL grammar and the conformance test of the SQLGetInfo. With the help of the SQL Test Suite 6.0 and the interactive testing approach, the supportability test of the SQL grammar were finished through a series of certain SQL statements that were executed by the SQL query analyzer. In the conformance test of the SQLGetInfo, the testing tool named ODBC Test was directly used by calling the SQLGetInfo along with specific input parameters.Interface conformance test verifies the conformity of the ODBC standard by function conformance test and attribute conformance test, as well as the descriptor field conformance test. And the QuikTest framework was frequently used in the function conformance test to fragmenting test. Furthermore, the interface conformance level of the rhodbc was finally improved by the modification of the source code of rhodbc with implementing functions unsupported before and standardizing the functionality of certain interfaces.After the SQL conformance test, it was found that several features of the SQL grammar have not been supported by the Xugu database, therefore, the SQL conformance level declared by rhodbc is unreasonable so that the improvement on Xugu database needs to be done by database manufacturers. Meanwhile, after several modifications and enhancements, many problems found in the interface conformance test were solved finally, along with the improvement of the interface conformance level. Therefore, the interface conformance level declared by the rhodbc is both correct and reasonable.
Table of contents
Abstract 4-5
ABSTRACT 5-10
Chapter Introduction 10-14
1.1 research background 10 - 11
1.2 research topics and objectives 11-13
1.3 the paper is organized 13-14
Chapter ODBC Profile 14 - 21
2.1 ODBC background 14
2.2 ODBC standard profiles 14-15
2.3 ODBC framework 15-17
2.4 ODBC driver Profile 17-20
2.4.1 single Level ODBC driver 18-19
2.4.2 multilayer ODBC driver 19-20 < br /> 2.5 Chapter Summary 20-21
Chapter ODBC standard compliance research 21-33
3.1 ODBC standards compliance 21-22 < br /> 3.2 SQL compliance 22-28
3.2.1 entry 23-24
3.2.2 transitional stage 24-26
3.2.3 The intermediate stage 26-28
3.2.4 completely level 28
3.3 Interface conformance 28-32
3.3.1 core-level 30-31
3.3.2 1级 31-32
3.3.3 2级 32
3.4 Summary 32 - 33
Chapter ODBC standard compliance testing 33-46
4.1 test object 33-38
4.1.1 Introduction Xugu database 33 -34
4.1.2 rhodbc the basic situation 34-35
4.1.3 rhodbc frame structure 35-38
4.2 project Description 38 -40
4.2.1 test environment 39-40
4.2.2 division of functions 40
4.3 test principle 40-44
4.3.1 SQL conformance Test principle 40-42
4.3.2 Interface conformance testing theory 42-44
4.4 issue features 44-45 <br / > 4.4.1 difficulties elaborated 44
4.4.2 advantages 44-45
4.5 test objectives 45
4.6 chapter Summary 45-46
Chapter SQL conformance test 46-59
5.1 SQL syntax support testing 46-54
5.1.1 review content 46-47
5.1.2 test Tool 47
5.1.3 preparation 47-49
5.1.4 test Method 49 -51
5.1.5 testing process 51-54
5.1.6 test Results 54
5.2 SQLGetInfo compliance testing 54-58 <br / > 5.2.1 review content 54-55
5.2.2 test Tool 55-56
5.2.3 test Method 56
5.2. 4 testing process 56-57
5.2.5 test Results 57-58
5.3 Chapter Summary 58-59
Chapter VI Interface compliance test 59-88
6.1 compliance test function 59-72
6.1.1 review content 59-60
6.1.2 test Tool 60
6.1.3 test Method 60-61
6.1.4 preparation 61-62
6.1.5 testing process 62 -70
6.1.6 test Results 70-72
6.2 rhodbc source correction 72-80
6.2.1 achieve SQLBrowseConnect 72-77 < br /> 6.2.2 achieve SQLForeignKeys 77-80
6.3 corrected test results 80-82
6.4 properties conformance testing 82-85 <br / > 6.4.1 review content 82-84
6.4.2 test Results 84-85
6.5 compliance testing domain descriptor 85-87 <br / > 6.5.1 review content 85-87
6.5.2 test Results 87
6.6 Summary 87-88
Chapter Summary 88-89
Thanks 89-90
References 90-92
Appendix 92-104