Unix and SQL and ACCESS database
I have
a CF file working under Windows with 2 queries (on Access database) :
1 - is a classical Insert
2 - is a select max ID of last insert
This always worked under Windows platform.
My Host changed the platform to UNIX :
Now : I have a bug on the 2nd query (select max ID)
message is : You are trying to access a closed table
I put a cfabort after the 1st Query : no error
but the record is not inserted.
Then it seems that at 2nd query the table is not free up.
The 1st query code is :
<CFQUERY name="insert_art" datasource="#pres_datasource#">
insert into article
(m_option,titre,contenu,ordre,art_date,file_tele,album_ph,auteur)
values(#form.option#,'#form.titre#','#n_contenu#',#form.ordre#,#createodbcdate(now())#,'#file_to_tele#',#form.album_id#,#session.user_id#)
</CFQUERY>
2nd query is :
<cfquery name="get_last_id" datasource="#pres_datasource#">
select max(art_id) as max_id from article
</cfquery>
Very simple.
And I repeat, this only under UNIX.
Any idea and help , thanks,
My Host does not want to collaborate. And deos not want to go back on Windows.
Pierre.
