# Future Proofing SQL with Carefully Placed Errors

DevFeed: [Future Proofing SQL with Carefully Placed Errors](<https://devfeed.tech/articles/future-proofing-sql-with-carefully-placed-errors-33905.md>)

Original publisher: [Read original article](<https://hakibenita.com/future-proof-sql>)

Author: Haki Benita

Published: 2022-10-05T21:00:00Z

Content type: tutorial

Language: en

Sources: [Haki Benita](<https://devfeed.tech/sources/haki-benita.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [errors](<https://devfeed.tech/tags/errors.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

This article explains how to future-proof SQL by deliberately placing errors in queries so that unsupported changes, such as a newly added payment method, are detected instead of silently producing incorrect business results.

## Source excerpt

There are many best practices for maintaining backward and forward compatibility in application code, but it's not very commonly mentioned in relation to SQL. SQL is used to produce critical business information for applications and decision-making, so there's no reason it shouldn't benefit from similar practices. In this article, I present a simple way to future-proof SQL.