Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesSQL3's Object Extensions


October 1997 / Features / Debunking Object-Database Myths / SQL3's Object Extensions

The SQL3 project aims to add object-oriented (OO) extensions to the SQL-92 syntax, making SQL object-friendly and enabling relational databases to handle more complex data types. But there have been some serious and fundamental problems with the SQL3 effort.

First, the committee began with a discouraging word in 1993, when Bjarne Stroustrup, the inventor of C++, said that he knew of four ways to store persistent objects and that they were all b ad. He then stated that he believed the OO paradigm was goo d for programming but bad for data.

Second, the rules of the Standards committee require SQL3 to be upward-compatible with the current SQL-92 standard. Consequently, any ODBMS features must be cast into a syntax that might not be good for OO constructs. The solution is an informal agreement between the ODMG and NCITS H2 to make the queries in SQL3 and OQL identical, or at least to overlap each other on most major points. But the schema declaration languages are still quite different.

Another area of concern is the interface. The 3GL host languages for which an interface to SQL-92 is defined (FORTRAN, Ada, C, M, COBOL, Pascal, and PL/I) have no basic disagreements about how to handle the scalar data types used in SQL. But C++, Smalltalk, Java, Eiffel, and several minor OO languages all disagree on OO fundamentals, such as inheritance, polymorphism, and encapsulation. OO vendors solve this problem with object brokers that automatically convert one object model to another one. Thus, the object database matches its host program.

There are political considerations. The object effort in SQL3 began with three sides, represented by Hewlett-Packard, Oracle, and IBM -- three RDBMS vendors. Each had a different object model and different features to add to SQL3. Having little experience with ODBMS, the committee approved proposals from all three companies. The internal contradictions and inconsistencies in the SQL3 draft document became so great that the ANSI X3H7 Object Standards committee sent a memorandum of concern to ANSI X3H2 on reviewing the document. Most of the current effort in SQL3 has been the cleanup of these problems.

Finally, in interviews we conducted, there was little endorsement of or enthusiasm for SQL3 from the ODBMS vendors. If they have to do it, they will. SQL3 will not be an approved de jure standard before 1999. By that time, the market will have established de facto standards. The most likely candidates for an object-database language are OQL and Java. OQL i s already defined and has wide vendor support. Java is becoming the de facto language of the Internet, where the capability of ODBMS products to handle nontraditional data will shine.


Up to the Features section contentsGo to previous article: Selecting an ODBMSGo to next article: Product SpecificsSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network