Search update

60548 results
2

votes
2

answer

update Entity Model Framework dynamically

I want to update ADO.Net Entity Data Model programmatically, so that the EDM is getting the newest version of the database (new tables, values etc.). Once a database table is added or altered the Entity model is out of date. Recompiling the data service is not an option. I know that it is possible t...
Geetha
26

votes
7

answer

SQLAlchemy ON DUPLICATE KEY UPDATE

Is there an elegant way to do an INSERT ... ON DUPLICATE KEY UPDATE in SQLAlchemy? I mean something with a syntax similar to inserter.insert().execute(list_of_dictionaries) ?
MrD
5

votes
1

answer

Wordpress Hook Pre Post Update

I am writing a wordpress plugin. I would like to to set the post status to publish if post status is future. I know one hook that is to be used that is pre_post_update. However where is the array of post related details stored so that I can change the post_status? Thanks for the help
6

votes
2

answer

Update a row using DataTable()

I would like to know the correct way to update/redraw a table row using the new API. Old questions suggest table.fnUpdate. Should I still be using the old API for this? The new API tells me nothing about updating rows. Thanks in advance!
filur
3

votes
1

answer

FindAndUpdate vs Update in mongodb

I am using Update and FindAndModify but now I have read that Update and FindAndModify are atomic(http://docs.mongodb.org/manual/tutorial/model-data-for-atomic-operations/), So if both can do the same job, by querying for item and updating it then what is the difference? I have found couple answers o...
meso_2600
2

votes
2

answer

LINQ-to-SQL update query

I'm having a problem with Link to SQL and updating a record, I think the problem is to with the current transaction based on the fact that I am looping through a connected data context: Using db = New PostcodeLookupModelContainer() Dim Stores = From b In db.lkpStores Where b.storeId ' = iStoreID '...
MAO
3

votes
2

answer

Bulk update SQL Server C#

I have a 270k-row database with primary key mid and a column called value, and I have a text file with mid's and values. Now I would like to update the table such that each value is assigned to the correct mid. My current approach is reading the text file from C#, and updating a row in the table fo...
Freek8
5

votes
2

answer

update with a proc sql

It should be an easy one but I'm stuck Proc sql; UPDATE dicofr SET dicofr.period = correspondance.period FROM dicofr INNER JOIN correspondance ON dicofr.name_fic = correspondance.name_fic; I was thinking my update would be done but I got this error instead. 271 proc sql; 272 update dico...
Andy K
11

votes
4

answer

Update multiple records in SQL

How can i update multiple records in a single statement like this with SQL?: UPDATE records SET name='abc' where id=3, SET name='def' where id=1
hhh3112
3

votes
1

answer

Additional “GO” after liquibase update

After update to liquibase 3.6.1 our old changeSets broke if they used DECLARE variables. Apparently additional GO statements are now added where there are empty rows, this is not how it used to work and it now makes our old files throw liquibase.exception.DatabaseException: Must declare the scalar...
Jeppz
2

votes
1

answer

JSF does not update variable

I am implementing a web page in Java Server Faces (JSF), and I have a problem. First, I will present my code, showing only the relevant code for this question. From the ProblemDomainModel, there is the class User: public class User implements java.io.Serializable{ private String name; public String...
Darth_Sygnious
2

votes
3

answer

Core data relationship count update

I have a core data model with blog groups, blogs, and posts. A blog group has a to-many relationship to blogs, and each blog has a to-many relationship to posts. A post has an attribute 'hasBeenRead.' Both the blog and the blog group have a attributes 'numberUnreadPosts.' I'd like to know the b...
Drewsmits
3

votes
2

answer

D3.js update Treemap dynamically

i want to update a Treemap dynamicly with new Data. I have read this article but i do not bring it up and running. So this is my code: function buildTreemap(jVals){ //$('#treemap').empty(); var data = jQuery.parseJSON(jVals); var margin = {top: 40, right: 10, bottom: 10, left: 10}, width = 760 - mar...
maker23
2

votes
3

answer

HTML Canvas: update globalAlpha property

I'm trying to update the globalAlpha of a canvas element after its painted. The canvas contains an image, and two texts. I show the code at the bottom. I want to change the globalAlpha property from 0.6 to 1 afterwards. How can i do this most elegantly with performance in mind? var ctx = canvasEleme...
hachev
4

votes
4

answer

Update Panel working very slow

I'm writing an app in which user can register. While registering the one may choose several options and according to these regiester fields are visible or not and are required or not. I came up with an idea that all fields will be in in the updatePanel and when users changes registration options I...
gruber
1

votes
3

answer

Magento: Update store logo programmatically

I've noticed that Magento keeps the URL to the logo it uses for each store you setup in the core_config_data table. If I run this SQL: SELECT * FROM core_config_data` WHERE path = 'design/header/logo_src' I get a list of stores and their associated logo. I also get a config_id and a scope_id. I'd l...
Tegan Snyder
2

votes
1

answer

Datagridview with procedure don't update

I have written this procedure in SQL and is working ALTER proc [dbo].[gridcombo] (@tabela int) as /*1 Setores */ if (@tabela=1) begin select setor_id, setor_nome from tbl_setores end /*2 Atividade Economica */ if (@tabela=2) begin SELECT cnae_id, cnae_descricao FROM tbl_CNAE end I use this pr...
alejandro carnero
4

votes
2

answer

Bulk update MySql with python

I have to update millions of row into MySQL. I am currently using for loop to execute query. To make the update faster I want to use executemany() of Python MySQL Connector, so that I can update in batches using single query for each batch.
keshaw
5

votes
1

answer

Update XML file in QT

I have Xml file in the above XML how can I update RName to RN and CName to CN using QT. I am using QDomDocument but not able to do required thing.
Sharanabasu Angadi
2

votes
3

answer

Trouble with 'Update Web Reference"

Occasionally I have a problem when I attempt to update a web reference in Visual Studio 2008 (this also happened in VS2005). It has happened in several different solutions. When I have a solution with a (.NET 2.0) web service and a project that references the web service I get 'There was an error d...
Jim Reineri
28

votes
2

answer

Restful Rails Edit vs Update

I was trying to redirect to a different page after editing an entry, I assumed that it was using the update code because you are updating the database. It took me some time to realise that I was using the wrong action in the controller. Can someone please explain how edit and update work. Why are...
Rumpleteaser
3

votes
2

answer

Sencha store update, refresh view

When I add items to a store, I want an other page (that shows all items from that same store), to update / re-render the view so the new added items show up. How can I 're-render' a view so re-checks a store for updates. Or something similar reload a view when an item is added to a store. Thanks in...
Voles
4

votes
2

answer

How to update DataTables DOM?

I am using Datatables for a review system, An user can grade each item by clicking on stars(1 to 5). Semestre Curso Disciplina Nível de Interesse 1 Engenharia de Software Redes ☆☆☆☆☆ .... My JS $(document).ready(function() { $('#tabela-disciplinas-preferencia').dataTable( { 'sPaginationTy...
dextervip
3

votes
1

answer

Ember 0.9.6 performances update - Significant?

I was naturally drawn to Ember's nice API/design/syntax compared to the competitors but was very saddened to see the performance was significantly worse. (For example, see the now well known http://jsfiddle.net/samdelagarza/ntMdB/167/ .) My eyes tell me at least 4 times slower than Backbone in Chrom...
AlexG
2

votes
2

answer

Opencart: Cannot update order programmatically

I'm developing a payment gateway extension on Opencart. The extension is all completed and working fine as planned. One thing does not seem to be working which is updating order. I'm trying to update the order as follows: $this->load->model('checkout/order'); $this->model_checkout_order->upda...
Arfeen
2

votes
2

answer

Ember.js: Update parent template property

Ey guys I got a simple question about changing a property inside a parent template. The code that I written is stated below: App.Router.map(function () { this.resource('parent' , { path: '/parent' }, function() { this.route('child1'); this.route('child2'); this.route('child3'); }); This router creat...
cocheese
29

votes
9

answer

svn update is not updating!

I want svn update to overwrite my local file with the files from the server, even if my local files have modifications, I want to throw them away and use the version that's on the remote repository. How do I do that? I tried svn update --force but it doesn't work. Update: Thanks for the answers, so...
hasen
2

votes
2

answer

Speeding Up Update SQL Query

I am using following SQL over a SQL 2000 table, which contain around 100,000 records. It is very slow. How can I speed this up ? UPDATE [MASTER] SET [STATUS] = 1 WHERE [CODE] IN (' + *customerCodes* + ')'; customerCodes is passed from a UI where user can check customers from a grid.
Buddhi Dananjaya
2

votes
1

answer

BlackBerry app auto-update [closed]

Is there any API for checking if there are any updates for an installed application?
MOHAN KUMAR M
15

votes
3

answer

yii2 composer update fatal error

When I update my composer to add yii2-solr extension to my project, I encounter with an error like below: The 'yiisoft/yii2-composer' plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example). The 'fxp/composer-asset-plugin' plu...
mohammad shafiee
2

votes
2

answer

Update Progressbar from another class

I'm writing an app in C#/WPF (.Net framework 4.0). The one thing I am having a problem with is how to update controls, if possible, while the app is very busy. I think I'm just flailing about trying things I find on the web to make it work (and on rare occasions it does). The app has four classes, a...
Ron
2

votes
3

answer

Update database model in hibernate

I have a simple MySQL database with some valid data that I mapped to a java class using hibernate framework. Now I change some database table fields in MySQL and want to update my model (e.g. java classes). I don't want to remap my database because I've done some changes in model classes that need t...
Morteza Zakeri
2

votes
2

answer

Scene Graph Update Callback Design

So Im using Open Scene graph to create an application and I have a callback class that extends from OSG's callback class. Its just a callback that is called each frame in the update event traversal of the scene graphs nodes. I need different callback classes that do different operations on the node...
Chris Shields
2

votes
1

answer

spark Dataframe execute UPDATE statement

Hy guys, I need to perform jdbc operation using Apache Spark DataFrame. Basically I have an historical jdbc table called Measures where I have to do two operations: 1. Set endTime validity attribute of the old measure record to the current time 2. Insert a new measure record setting endTime to 999...
Giorgio
2

votes
2

answer

How update fields in Lumen

I want to update few fields in my table. How it is update query write in lumen. I want to update salutation, name, lastname, address fields with dynamicaly equal to id. $query = 'UPDATEpassengersSETname= ? WHERE (id='1') '; $update = app('db')->update($query, [$passenger->name,]); I want to pass id...
user2552863
2

votes
1

answer

MySQL Update IF (ROW_COUNT() = 0)

I have this SQL : UPDATE gcd_data SET post_title = 'Hello World', post_content = 'How Are You?', post_date_gmt = '', post_modified_gmt = '', post_url = 'www.google.com', post_type = 'product' WHERE gcd_id='1024' IF (ROW_COUNT() = 0) INSERT INTO gcd_data (gcd_id, post_title, post_content, post_...
Saint Robson
2

votes
0

answer

anaconda update all downgrades packages

When I try to update all packages in my Anaconda3 virtualenv using the conda update --all command, instead of upgrading all packages, some packages Anaconda tells me would be downgraded. This is the output of the conda update --all command: Fetching package metadata: .... Solving package specificati...
Zelphir
3

votes
3

answer

Search & Update MySQL With Form

I wonder whether someone can help me please. I'm trying to put together a form that I can use to search for member details from a mySQL database, retrieve the results so that they appear in pre-determined text boxes on the same form and make updates to send back to the database. The code I'm using i...
IRHM
27

votes
1

answer

MySQL 'select for update' behaviour

As per the MySql documentation, MySql supports Multiple granularity locking(MGL). case-1 Opened terminal-1: // connected to mysql mysql> start transaction; Query OK, 0 rows affected (0.00 sec) mysql> select id, status from tracking_number limit 5 for update; +----+--------+ | id | status | +----+---...
Pragalathan M
2

votes
1

answer

Update MKMapkitview annotaions not working?

i have one UIViewcontroller with a MKMapKit and a PickerView.Like as shown below image. and i have one plist which contains all co ordinates corresponding to the values in PickerView .So once i select any item from PickerView i will refresh the current Map and take the coordinates of new item (som...
Bangalore