diff --git a/lib/connection.js b/lib/connection.js index f11ecf05..107203cb 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -199,6 +199,11 @@ Connection.prototype.parse = function(query, more) { //normalize missing query names to allow for null query.name = query.name || ''; + if (query.name.length > 63) { + console.error('Warning! Postgres only supports 63 characters for query names.'); + console.error('You supplied', query.name, '(', query.name.length, ')'); + console.error('This can cause conflicts and silent errors executing queries'); + } //normalize null type array query.types = query.types || []; var len = query.types.length;