首页 | 本学科首页   官方微博 | 高级检索  
     


Checking enforcement of integrity constraints in database applications based on code patterns
Authors:Hongyu ZhangAuthor Vitae  Hee Beng Kuan TanAuthor VitaeLu ZhangAuthor Vitae  Xi LinAuthor Vitae  Xiaoyin WangAuthor VitaeChun ZhangAuthor Vitae  Hong MeiAuthor Vitae
Affiliation:a Key Laboratory for Information System Security (Tsinghua University), Ministry of Education, Beijing 100084, China
b Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China
c Nanyang Technological University, Singapore 639798, Singapore
d Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871, China
Abstract:Integrity constraints (including key, referential and domain constraints) are unique features of database applications. Integrity constraints are crucial for ensuring accuracy and consistency of data in a database. It is important to perform integrity constraint enforcement (ICE) at the application level to reduce the risk of database corruption. We have conducted an empirical analysis of open-source PHP database applications and found that ICE does not receive enough attention in real-world programming practice. We propose an approach for automatic detection of ICE violations at the application level based on identification of code patterns. We define four patterns that characterize the structures of code implementing integrity constraint enforcement. Violations of these patterns indicate the missing of integrity constraint enforcement. Our work contributes to quality improvement of database applications. Our work also demonstrates that it is feasible to effectively identify bugs or problematic code by mining code patterns in a specific domain/application area.
Keywords:Integrity constraint enforcement   Code patterns   PHP   Static analysis   Code quality
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号