Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njfEo-0002pg-Oh for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 10:49:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njfEn-0000Ai-Jl for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 10:49:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njfEn-0008VT-5B for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 10:49:37 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1njfEk-0000Nr-1p for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 10:49:35 +0000 Received: by mail-ed1-x52c.google.com with SMTP id g20so1453076edw.6 for ; Wed, 27 Apr 2022 03:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=AMuaHJ2m05hiqkWjsGA4fqhOv4oCKoCML11SpsqOj1g=; b=WMVmviWRKbZkvJCPmjl+vMME+vtJa1HpqrSsttE5pntGCGP1UdYc+FcPxtFf9qSBKK SljvMI4wKJfc4AUcv9AbtUUDa2Vq/5/I6tr1jb7JStw0V7DI9qlUVFnAcbHuxkmzwkYq nXWbzPaV3zsEcFClxr4dx1h61LOR/O9V4urmpJZb6t+aH5CXWFQhQq4AYQBDMfROB2CM z6d1QqPrlYdLWyuKdd/Lf0kUFcdlAmUrbUkWrctSO98Ad8A0bApVEWh9zAlYYkp7oVIF Vug5tjix/owFRVIAKhZrMPHkg8G8UMjAxtk+SNFJs27htRqpTEw6dY6ct0lI+3OCyf5a v0yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=AMuaHJ2m05hiqkWjsGA4fqhOv4oCKoCML11SpsqOj1g=; b=63oksv6GvyH6LGMU/SBBxbwKeHOCEpVBYSVuDTV3/MRj2/vlxz90vG91DcFZsLaoe8 our2x9Z5ihCcwC9tGFCThLDVNIctnjHznCQJIdvBKLSHfKR+6rat5c6m8iIz/G76ETAm CvbzKpqAS6T6Rxe8RXsSCqGay2GPW+2CwPNpvEJscs3iGMB6Ghb2ZinBVrHCxjQYjuPT EIpJw0aB2Kq0gUxADGCrW/6ZnT3QxI3JT7eackJlpf8urwDKMuxNzOuYpgFVWF6v+NFr s/egCQb3HC8yTytExXpv1pziajXTN4JAZRWsieTeeD6c96NIE5T0EIBpd6lFClAizTUB wXJg== X-Gm-Message-State: AOAM530nhKyMCHyzAlonXPLFz1d39rdzstYV6IGabBdi499SDwiA6Mz2 VIPwaw/2Zfu5oJ4bMbFq461CiA== X-Google-Smtp-Source: ABdhPJzGvVhgGOvvuc4E9/m/Y8OPOFmYjpVAQwJKwyN9VXX4pDvzlEl23yWi6VymGreuMqqjh205GQ== X-Received: by 2002:a05:6402:4246:b0:423:ee59:1cd9 with SMTP id g6-20020a056402424600b00423ee591cd9mr30112830edb.376.1651056571639; Wed, 27 Apr 2022 03:49:31 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:b8e3:cb1b:5da7:8fa7:5553]) by smtp.gmail.com with ESMTPSA id dm11-20020a170907948b00b006cf488e72e3sm6596253ejc.25.2022.04.27.03.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:49:31 -0700 (PDT) Message-ID: Subject: Re: Fresh eyeballs needed: input into error From: Laurenz Albe To: Rich Shepard , pgsql-general@lists.postgresql.org Date: Wed, 27 Apr 2022 12:49:30 +0200 In-Reply-To: <457ef4b-792a-9ef-5172-972617d10f7@appl-ecosys.com> References: <457ef4b-792a-9ef-5172-972617d10f7@appl-ecosys.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-5.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2022-04-26 at 14:31 -0700, Rich Shepard wrote: > I'm getting a syntax error with an input into statement and I cannot see the > cause. > > A MWE and the result (N.B.: line one wrapped for readability; it ends with > 'values'): > insert into people (person_nbr,lname,fname,job_title,company_nbr,loc_nbr, > loc_phone_ext,direct_phone,direct_fax,cell_phone,email,active,comment) values > (6000,'No','Name',null,404,1,null,null,null,null,null,null,null); > > 2: ERROR:  syntax error at end of input > LINE 2: ( >           ^ > What do I keep missing? Another explanation is that there was already something in your query buffer when you entered that statement, so that together it caused a syntactically incorrect statement, something like (in psql): test=> insert test-> insert into people (person_nbr,lname,fname,job_title,company_nbr,loc_nbr, loc_phone_ext,direct_phone,direct_fax,cell_phone,email,active,comment) values (6000,'No','Name',null,404,1,null,null,null,null,null,null,null); ERROR: syntax error at or near "insert" LINE 2: insert into people (person_nbr,lname,fname,job_title,company... ^ Yours, Laurenz Albe