sql server - Ruby-ODBC transaction statement not updating table in MSSQL (Mac OSX) -


i have installed freetds (1.00.15) unixodbc (2.3.4) , accessed ms sql server (2014). able verify issue having doesn't lie freetds , unixodbc. because within isql client prompt, able execute both select , update queries.

i running el capitan os x sinatra app has ruby-odbc gem, requirement.

the application able query records database properly. however, when try running ruby method triggers update statement, in logs says it's successful, when check database nothing has been updated. hindering ruby web app updating data source correctly.

new information

so discovered morning (11-11-2016) ruby-odbc doesn't work if update statement ran in transaction block. however, if comment out transaction, works fine , commits data. difference in processing of code between os x , fedora.

does have solution issue?

if using freetds python or php, you're going have set autocommit=true part of connection options. search here autocommit more details:

http://www.ch-werner.de/rubyodbc/odbc.html

good luck!


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -