Multiple row insert not working as before after applying hotfix apsb13-13
Coldfusion 9.01
Windows Server 2003
Microsoft Access database (yeah, we know)
Before the hotfix was applied, we could add multiple rows (anywhere from 1-100 or more) and now we're limited to 15 rows at a time after applying the hotfix. We've narrowed it down to the hotfix being the culprit as we had to rebuild the server not to long after this hotfix was applied (~ 1 month) and the multiple row inserts were once again working fine until we got to the point of applying this hot fix again.
Anyone heard of this happening? Any ideas how to correct?
Thanks in advance,
fmHelp
Below is code of how we're doing the multiple row insert (it's performed over 3 pages):
Page 1
<cfform name="form1" method="post" action="handler.cfm?page=update_2">
<input type="hidden" name="sProductID" value="<cfoutput>#qProducts.sProductID#</cfoutput>">
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<th scope="row" colspan="2" align="center">Update an Inventory Product</th>
</tr>
<tr>
<th width="42%" scope="row">Product ID</th>
<td width="58%"><cfoutput>#qProducts.sProductID#</cfoutput></td>
</tr>
<tr>
<th width="42%" scope="row">Friendly Name</th>
<td width="58%"><cfoutput>#qProducts.sFriendly_Name#</cfoutput></td>
</tr>
<tr>
<th width="42%" scope="row">Description</th>
<td width="58%"><cfoutput>#qProducts.sDescription#</cfoutput></td>
</tr>
<tr>
<th width="42%" scope="row">Vendor</th>
<td><select name="sVendor">
<cfoutput><option value="#qProducts.sVendor#">#qProducts.sVendor#</option></cfoutput>
<option value=""></option>
<cfoutput query="qVendor">
<option value="#sVendor#">#sVendor#</option>
</cfoutput>
</select></td>
</tr>
<tr>
<th scope="row">Order No.</th>
<td><cfinput name="sOrder_No" type="text" value="" required="yes" message="Order number is a required field."></td>
</tr>
<tr>
<th scope="row">Lot No.</th>
<td><input name="sLot" type="text" value=""/></td>
</tr>
<tr>
<th scope="row">Date Expires</th>
<td><input name="dtExpire" type="text" value=""/></td>
</tr>
<tr>
<th scope="row">Boxes received</th>
<td><input name="iBoxes" type="text" value="" /></td>
</tr>
<tr>
<th scope="row">Doses/Units</th>
<td><input name="pcount" type="text" value="" /></td>
</tr>
<tr>
<th scope="row">Note</th>
<td><cfoutput>#qProducts.sNote#</cfoutput></td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
</tr>
<tr>
<th scope="row" colspan="2" align="center"><input type="submit" value="Submit" /></th>
</tr>
</table>
</cfform>
</table>
Page 2
<form name="form1" method="post" action="handler.cfm?page=update_3">
<cfoutput><input type="hidden" name="pcount" value="#FORM.pcount#"></cfoutput>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="6" align="left">Record count (Doses/Units)= <cfoutput>#FORM.pcount#</cfoutput></td>
</tr>
<tr>
<td>Product ID</td>
<td>Vendor</td>
<td>Order No.</td>
<td>Lot No.</td>
<td>Expiration Date</td>
<td>Num. of Boxes</td>
</tr>
<cfset Peoplecount = 0>
<cfloop index="Add" from="1" to="#form.pcount#" step="1">
<tr>
<cfset Peoplecount = PeopleCount + 1>
<td><input <cfoutput> value="#FORM.sProductID#" </cfoutput> name="sProductID_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="sProductID_"></td>
<td><input <cfoutput>value="#FORM.sVendor#"</cfoutput> name="sVendor_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="sVendor_"></td>
<td><input <cfoutput> value="#FORM.sOrder_No#" </cfoutput> name="sOrder_No_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="sOrder_No_"></td>
<td><input <cfoutput>value="#FORM.sLot#"</cfoutput> name="sLot_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="sLot_"></td>
<td><input <cfoutput> value="#DateFormat(FORM.dtExpire, 'MM/DD/YY')#" </cfoutput> name="dtExpire_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="dtExpire_"></td>
<td><input <cfoutput>value="#FORM.iBoxes#"</cfoutput> name="iBoxes_<cfoutput>#Peoplecount#</cfoutput>" type="text" id="iBoxes_"></td>
</tr>
</cfloop>
<tr>
<td> </td>
<td>
<input type="submit" name="Submit" value="Submit">
<input name="HowMany" type="hidden" id="HowMany" value="<cfoutput>#Form.pcount#</cfoutput>">
</td>
</tr>
</table>
</form>
</table>
Page 3
<cfquery name="qGetOnHand" datasource="#variables.DSNCI#">
SELECT *
FROM Products
WHERE sProductID = '#session.sProductID#'
</cfquery>
<cfquery datasource="#variables.DSNCI#">
UPDATE Products
SET iOnHandQty = (#FORM.pcount# + #qGetOnHand.iOnHandQty#)
WHERE sProductID = '#session.sProductID#'
</cfquery>
<cfset quantity = #FORM.pcount#>
<cfset Pcount = 0>
<!-- Start Loop -->
<cfloop index="Add" from="1" to="#form.howmany#" step="1">
<cfset Pcount = Pcount + 1>
<cfset Product = "Form.sProductID_#Pcount#">
<cfset Product = Evaluate(Product)>
<cfset Vendor = "Form.sVendor_#Pcount#">
<cfset Vendor = Evaluate(Vendor)>
<cfset Order = "Form.sOrder_No_#Pcount#">
<cfset Order = Evaluate(Order)>
<cfset Lot = "Form.sLot_#Pcount#">
<cfset Lot = Evaluate(Lot)>
<cfset Expires = "Form.dtExpire_#Pcount#">
<cfset Expires = Evaluate(Expires)>
<cfset Boxes = "Form.iBoxes_#Pcount#">
<cfset Boxes = Evaluate(Boxes)>
<cfquery datasource="#variables.DSNCI#" name="InsertData">
Insert into Received_History (sProductID, sVendor, sOrder_No, sLot, dtExpire, iBoxes, dtReceived)
values ('#Product#', '#Vendor#', '#Order#', '#Lot#', <cfif Expires IS "">NULL<cfelse>#CreateOdbcDate(Expires)#</cfif>, #Boxes#, #CreateOdbcDate(Now())#)
</cfquery>
</cfloop>
Rasi wrote:show your complete default.pa (also make sure that you dont override pulse settings in ~/.config/pulse) this setting should allow sound for ANY user - i just tried it and it works
also: of course you restarted pulseaudio?
I restarted pulseaudio and my computer.
My default.pa is displayed in the first post.
My files in /etc/pulse:
> ls -la /etc/pulse
total 28
drwxr-xr-x 1 root root 116 May 16 10:22 .
drwxr-xr-x 1 root root 3740 May 16 10:47 ..
-rw-r--r-- 1 root root 1269 Mar 3 21:31 client.conf
-rw-r--r-- 1 root root 2348 Oct 8 2013 daemon.conf
-rw-r--r-- 1 root root 5756 May 16 10:24 default.pa
-rw-r--r-- 1 root root 5718 Oct 8 2013 default.pa.pacnew
-rw-r--r-- 1 root root 2112 Oct 8 2013 system.pa
-la
My files in ~/.config/pulse:
> ls -la ~/.config/pulse
total 1048
drwx------ 1 homeuser homeuser 660 Sep 12 2013 .
drwx------ 1 homeuser homeuser 1054 Apr 24 14:06 ..
-rw-r--r-- 1 homeuser homeuser 40960 Oct 17 2013 1a8726d55f9140ae9d95dc512eacea67-card-database.tdb
-rw-r--r-- 1 homeuser homeuser 43 May 16 10:37 1a8726d55f9140ae9d95dc512eacea67-default-sink
-rw-r--r-- 1 homeuser homeuser 42 May 16 10:37 1a8726d55f9140ae9d95dc512eacea67-default-source
-rw-r--r-- 1 homeuser homeuser 12288 May 16 10:49 1a8726d55f9140ae9d95dc512eacea67-device-volumes.tdb
lrwxrwxrwx 1 homeuser homeuser 23 Sep 12 2013 1a8726d55f9140ae9d95dc512eacea67-runtime -> /tmp/pulse-cDmMRoO9oFBz
-rw-r--r-- 1 homeuser homeuser 12288 May 15 22:43 1a8726d55f9140ae9d95dc512eacea67-stream-volumes.tdb
-rw------- 1 homeuser homeuser 256 Jun 15 2013 cookie
-rw-r--r-- 1 homeuser homeuser 331776 Jun 21 2013 equalizer-presets.tdb
-rw-r--r-- 1 homeuser homeuser 659456 Sep 20 2013 equalizer-state.tdb
Thanks for your efforts.
Similar Messages
-
BINARY SEARCH does not work as before after upgrade
We recently upgraded from HRSP 26 to HRSP 40 as well as similar upgrades in non-HR areas on our ECC 6.04 system. We've been in SAP since 1998, and have a lot of old custom programs which were written when we were still new at ABAP. In a few, we put records into an internal table sorted the table, maybe added a few more records to the table, and did a READ BINARY SEARCH. Granted, this is not correct, adding records to a table after it is sorted. But these programs have worked for more than 10 years and now, since our upgrade, the READ BINARY SEARCH does not always find a record where it did before the upgrade.
So this is mostly just a heads-up. If you are missing data in reports after upgrading, this might be the issue. Also I am wondering if anyone has experienced this.
Heads-up!
Janice IsheeHi Janice,
you did not give any context. Please note that it is a popular error to think that a SELECT statement will fetch data in order of the primary key of the table - although it happens quite frequently. So always first sort, then binary search.
Probably not related to upgrade.
Regards,
Clemens -
After download ios5 my iPhone dose not work like before why?
After download ios5 my iPhone dose not work like before why?
i have iphone 3gsOK this is the issue after download ios5 my phone goes crazy like when i turn on my 3G i can`t call someone and i cant even check my email i don't know why ...so after all this problem i have to turn 3G off and than call to my friend so why it work like this ?
i restore my phone ...i restore as a new phone but still i have the problem .... -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
Multiple delete is not working.
Hi,
Multiple delete is not working. Please find my backend bean code. Please let me know the issue in my code.
Table:
<af:table value="#{bindings.CmProcessParamValueView13.collectionModel}"
var="row"
rows="#{bindings.CmProcessParamValueView13.rangeSize}"
emptyText="#{bindings.CmProcessParamValueView13.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.CmProcessParamValueView13.rangeSize}"
rowBandingInterval="1"
selectedRowKeys="#{bindings.CmProcessParamValueView13.collectionModel.selectedRow}"
selectionListener="#{bindings.CmProcessParamValueView13.collectionModel.makeCurrent}"
rowSelection="multiple"
binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
id="t1" width="720px" inlineStyle="height:140px;" partialTriggers="cb6 cb3"
filterVisible="true" filterModel="#{bindings.CmProcessParamValueView13.queryDescriptor}" >
<af:column sortProperty="ParamValue7"
sortable="true" width="690"
headerText="Comm Type"
rowHeader="unstyled"
id="c2" align="left" filterable="true">
<af:outputText value="#{row.ParamValue7}"
id="ot4"/>
</af:column>
</af:table>
Backing Bean Delete Code:
RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
CollectionModel cm = (CollectionModel)this.t1.getValue();
System.out.println("RowKeySet is: "+ rowKeySet.getSize());
for (Object facesTreeRowKey : rowKeySet) {
cm.setRowKey(facesTreeRowKey);
JUCtrlHierNodeBinding rowData =
(JUCtrlHierNodeBinding)cm.getRowData();
System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
rowData.getRow().remove();
Thanks.Issue is resolved...
Solution is,
Remove selectionListener and selectedKey attributes from the table.
Delete code is:
DCBindingContainer dcBindings =
(DCBindingContainer)getBindings();
DCIteratorBinding dcIterator =
dcBindings.findIteratorBinding("Iterator...");
RowSetIterator rs = dcIterator.getRowSetIterator();
RowKeySet rks = this.t1.getSelectedRowKeys();
Iterator rksIter = rks.iterator();
while (rksIter.hasNext()) {
List l = (List) rksIter.next();
Key key = (Key)l.get(0);
Row row = rs.getRow(key);
if(row != null)
row.remove();
} -
Hi,
I know this question has been asked and there was an answer:
http://stackoverflow.com/questions/1609637/is-it-possible-to-insert-multiple-rows-at-a-tim e-in-an-sqlite-database
But now things has changed, from version 3.7.11 SQLite does work normally with multiple insert:
http://stackoverflow.com/questions/1609637/is-it-possible-to-insert-multiple-rows-at-a-tim e-in-an-sqlite-database
http://www.sqlite.org/lang_insert.html
Now the problem is that I use SQLite Expert to perform a multiple row insert with normal sql method:
INSERT INTO table (col1, col2) VALUES
('row1col1', 'row1col2'), ('row2col1', 'row2col2'), ...
And this works. However when I try to use this insert within Flash Builder it gives me an error - syntax error near ",".
Is there a way I can check or update SQLite within Flex so I could use multiple row insert?
Thanks in advance for answers:)Unlike in php (values(product1),(product2),(product3))
you cannot insert records like that in a sqlite db.
What i did is the following
public function insertMonthRecords():void
var sqlText:String = "INSERT INTO month( monthname)
" +
"VALUES('Januari')";
insertStatement = new SQLStatement();
insertStatement.sqlConnection = conn;
insertStatement.addEventListener(SQLEvent.RESULT,
insertResult);
insertStatement.addEventListener(SQLErrorEvent.ERROR,
errorHandler);
insertStatement.text = sqlText;
insertStatement.execute();
insertStatement.text = "INSERT INTO month(monthname)
VALUES('Februari')";
insertStatement.execute();
insertStatement.text = "INSERT INTO month(monthname)
VALUES('March')";
insertStatement.execute();
insertStatement.text = "INSERT INTO month(monthname)
VALUES('April')";
insertStatement.execute();
And so on.. To bad i didn't found a solution to execute all
the inserts at once. Inserting this way takes time :-(
If you have a better solution, just let me know.
Greetz, Jacob -
Multiple rows insert and update form example
I just want to share with you an example of a multiple rows insert and update form. You can access it HERE (http://tryapexnow.com/apex/f?p=12090:21)
You will find on the same page the complete description of all elements used to buid it.
I'm waiting for opinions, suggestions, and questions here in this thread.
ThanksHello Valentin,
I got an error message when I clicked on the weblink. Here is the message
Error ERR-7620 Could not determine workspace for application. Could you please take a look at this.
Thanks,
Karol -
I download the new IOS7 in my iPad beeing in the usa And where I come back to my country appears me again to upad te my iPad of ferina the IOS 7. I did it my iPhone And is not working as before.what i must do
I'm sorry, but I do not understand what you are asking or saying. Perhaps you could clarify a little bit.
-
Adobe flash player not working on Safari after being installed, System OS X 10.9.2 has been just updated to Maverick
Enable Plug-ins
Safari > Preferences > Security
Internet Plug-ins > "Allow plug-ins"
Enable it.
Click "Manage Website Settings"
Highlight "Adobe Flash Player", "Allow" and then "Done". -
RSS not working in Mail after MobileMe instal
The title pretty much says it all "RSS not working in Mail after MobileMe instal" The names of the RSS feeds are still there but all have the triangle error message beside them.
you may have already tried this but in the mailbox menu at the top, try to take all accounts offline then take them all back online again. if that doesn't work you can always do a rebuild which is kind of a pain, but it usually does the trick.
-
The forward, back, refresh, and stop buttons are not working. Even after installing the latest Firefox update. Also my home page stopped loading upon startup even tho I have it setup to do so. Anyone else experiencing these issues? This is my second request for help and of course, Firefox on-line support is always closed.
Those are all symptoms of a problem with the places.sqlite file, for details see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
-
Send & Recieve functionality not working with WebDav after installing Acrobat XI
Send & Recieve functionality not working with WebDav after installing Acrobat XI for PDF. Acrobat XI is complete installations(Trial Version).
Hi Kiro ,
Did you try opening that file in any other browser ?If not ,please try doing that once and see if that works for you.
Try Repairing Acrobat once and see if that helps.
Launch Acrobat>Navigate to Help>Repair Acrobat Installation.
Regards
Sukrit Dhingra -
The front row is not working. Remote control not triger,
Front row is not working, Remote control no response, command-esc not triger as well.
check keyboard shortcut from system preference, there is no front row.
anyone know why?Ok first try it in another Account.
1. Open the account system pref window (System Preferences > Accounts)
2. Click the plus button at the bottom
3. Specify an account name (ex: test)
4. Add account
5. Logout of your current account, and login to the newly created one
If it works, then something was wrong with your account, move your files to the new account, and delete the old one.
If it did not work:
1. Try the reinstall again (DO NOT DO "ARCHIVE AND REINSTALL", as this may keep some file that is hindering FR from operating correctly
2. Make sure the FR file is in the Core Services Folder (Macintosh HD/System/Library/CoreServices/Front Row.app)
3. Make sure that you do not have the IR sensor turned off on your computer (System Prefs > Security > Uncheck "Disable Remote Control IR Sensor")
4. Make sure that your remote is paired (http://docs.info.apple.com/article.html?artnum=302545)
5. Make sure that the Command + Esc key is setup to respond by opening front row:
(1) Open system prefs
(2) Open keyboard & mouse prefs
(3) Click keyboard shortcuts
(4) Scroll down until you see front row
(5) Assign the Command + Esc key if it is not mapped
6. Finally, if all else fails, call AppleCare while your computer is still under warranty
Hope this helps,
Cory -
Quick time not working in safari after downloading flip4mac
Quick time is not working in safari after downloading flip4mac. How do I get quick time to work within safari? It was working prior to flip4mac being installed but I need flip4mac for some websites.
Hi
Go to System Preferences>Flip4Mac>Browser
Make sure the first two boxes are checked. Check the 3rd box if you want the QT controller to be displayed.
Restart Safari
Post back -
Zoom in and out is not working in folders after installing Lion OS
Zoom in and out is not working in folders after installing Lion OS. Did not understand why?
Feature has been removed AFAIK. As far as zoom is concerned, the new operating system has been..whatever the opposite of optimized is...pessimized?
Maybe you are looking for
-
I want to add a text/plain to canvas3d.it won't be in another frame and it will be inside canvas3d.if anyone have any idea please send that.its very URGENT.Thanks in advance
-
Error message on Illustrator when trying to open a file - please help!
Cant open the illustration. There is not enough room for the window. Increase document area and try again. Please help me open my files......
-
Printing problem with Konica Minolta BizHub282 using RDP on Windows Server 2008 R2
Hello, I have an office setup as follows: Local office IP adress scheme 192.168.201.x. There is a Konica Minolta BizHub 282 printer connected to the 192.168.201.x network as well as around 10 workstations running Windows 7. There are also about 10
-
Delivery of goods & customer Invoices
Dear Friends, We are implementing only MM & FICO modules only. We are not suppose to implement SD, means Sales Area, Sales Org., Distribution Channel, Division etc., In this scenarios, we need to maintain some of the SD scenarios, like delivery of
-
I purchased an annual subscription to Acrobat Pro XI and installed on my Mac two days ago. I cannot open PDFs. I keep getting a dialogue box saying my trial has ended and asking if I want to buy the software. Was using Acrobat Pro 9 previously. It ap