🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: perl.macperl.anyperl
Article #1

Re: [MacPerl-AnyPerl] DBI under the MAC

#1
From: Sean Murphy
Date: Fri, 09 Dec 2011 18:18
36 lines
3748 bytes
Hi  Keary 

Ouch, it was right in front of my nose and I didn't see it.

Thanks.
On 10/12/2011, at 2:53 AM, Keary Suska wrote:

> On Dec 9, 2011, at 4:42 AM, Sean Murphy wrote:
> 
>> my $sth2 = $dbh->prepare("insert into trans (accounts, transaction_date, description, amount, amount_type, transaction_type, serial, category_id) values (?, ?, ?, ?, ?, ?, ?, ?);")
>> 	          or die("Cannot prepare: " . DBI::errstr() );
>> 
>> 
>> When the above is executed in the full script. We get the following error:
>> 
>> DBD::SQLite::db prepare failed: table trans has no column named accounts at ./insert_budget.pl line 60.
>> Cannot prepare: table trans has no column named accounts at ./insert_budget.pl line 60.
> 
> "accounts" (plural)
> 
>> sqlite> .schema trans
>> CREATE TABLE trans (transaction_id int primary key, account int, transaction_date date, description varchar(80), amount decimal (11,2), amount_type varchar(3) not null, transaction_type varchar(40), serial varchar(40), category_id int);
> 
> "account" (singular)
> 
> HTH,
> 
> Keary Suska
Technical Details
Message-ID: <A8EBB660-7DCA-45BF-ADF4-403C203F4245@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.macperl.anyperl.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!nntp.develooper.com!nntp.perl.org
References: <CC36CAD2-53D1-432E-8B5F-A2C35106B065@gmail.com> <1903F5A7-E5EC-4BDF-ACA1-CDF89FEEF7DC@pcisys.net>

Show Full Headers
Complete Article Headers
Message-ID: <A8EBB660-7DCA-45BF-ADF4-403C203F4245@gmail.com>
Subject: Re: [MacPerl-AnyPerl] DBI under the MAC
Date: Sat, 10 Dec 2011 05:18:18 +1100
From: mhysnm1964@gmail.com (Sean Murphy)
References: <CC36CAD2-53D1-432E-8B5F-A2C35106B065@gmail.com> <1903F5A7-E5EC-4BDF-ACA1-CDF89FEEF7DC@pcisys.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.macperl.anyperl.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!nntp.develooper.com!nntp.perl.org
Newsgroups: perl.macperl.anyperl
Return-Path: <mhysnm1964@gmail.com>
Mailing-List: contact macperl-anyperl-help@perl.org; run by ezmlm
Delivered-To: mailing list macperl-anyperl@perl.org
Received: (qmail 29842 invoked from network); 9 Dec 2011 18:18:27 -0000
Received: from x1.develooper.com (207.171.7.70)
Received: (qmail 7977 invoked by uid 225); 9 Dec 2011 18:18:27 -0000
Delivered-To: macperl-anyperl@perl.org
Received: (qmail 7973 invoked by alias); 9 Dec 2011 18:18:27 -0000
X-Spam-Status: No, hits=-0.7 required=8.0
 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT,
 FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS
X-Spam-Check-By: la.mx.develooper.com
Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com)
 (209.85.220.169) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP;
Received: by vcbfk26 with SMTP id fk26so3326307vcb.14
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
 h=subject:mime-version:content-type:from:in-reply-to:date:cc
 :content-transfer-encoding:message-id:references:to:x-mailer;
 bh=6KP2HhRUsz0PCfYgj7SRirM9AMDS4djx/4OVW5U9laU=;
 b=lZ2C6vyfF44ZB9xIcMUZevFylyoEQU440nILP/+1HDbLHsXAGbAogyhxqtddcFlK8S
 0e047KGlblKR0+IlFO7br4FzoijllPN/j+2UI+bWCMlH9VJyQXS80Dtbv8K78ATXzr9N
 YBgmUomoCuxZzmcHxJ5k+reR4Mh6jQb9Nkh9o=
Received: by 10.220.0.131 with SMTP id 3mr1013613vcb.213.1323454701226;
Received: from [192.168.1.143] (CPE-144-136-117-30.hnub1.ken.bigpond.net.au.
 [144.136.117.30])
 by mx.google.com with ESMTPS id z6sm7660009vdg.18.2011.12.09.10.18.19
 (version=TLSv1/SSLv3 cipher=OTHER);
Mime-Version: 1.0 (Apple Message framework v1251.1)
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <1903F5A7-E5EC-4BDF-ACA1-CDF89FEEF7DC@pcisys.net>
Cc: macperl-anyperl@perl.org
Content-Transfer-Encoding: quoted-printable
To: Keary Suska <hierophant@pcisys.net>
X-Mailer: Apple Mail (2.1251.1)
Approved: news@nntp.perl.org
Lines: 36