[#405180] How to translate the following sqlite3 insert statement into equivalent mysql insert statement — "Yu W." <lists@...>
sqlite3 insert statement:
[#405195] Is it possible to use OptionParser with short options such as -oo? — "Shareef J." <lists@...>
Hi there,
[#405201] Why class returns `null` but the definition not when their description ended in IRB? — "Kumar R." <lists@...>
The below class description returns its last evaluated expression :
Because that's how it is implemented.
[#405207] Does `self` and `scope(local)` operate parallels? — "Kumar R." <lists@...>
I am heavily confused with the topic when thinking `self` and `local
Just to help experts out there I am clearing my statement once again
"Kumar R.": "YAATSGFY"
Michel wrote in post #1099829:
Hey, I am repeatedly saying that not to do this on my thread. But you
[#405217] Sequel vs. RDBI vs. DBI — Jim Hranicky <jfh@...>
So it looks like RDBI hasn't been touched in a while and DBI
[#405222] How differs `Private` methods from `singleton methods`? — "Kumar R." <lists@...>
Can anyone help me to understand the difference between `private
[#405242] Confusion in instance method calls of super class from subclass — "Kumar R." <lists@...>
I was just playing to see the instance method calls from the subclass
YOU DID NOT READ WHAT I WAS WRITTEN:
Hans Mackowiak wrote in post #1099900:
Ryan Davis wrote in post #1099902:
Am 03.03.2013 11:06, schrieb Kumar R.:
[#405245] ruby 1.8.7 Accessing files with non-latin names — Bart Els <lists@...>
Hello Forum,
[#405250] Extending Ruby. Little help or guidance if you are willing! — Cliff Rosson <cliff.rosson@...>
Hi Folk,
Am Sun, 3 Mar 2013 10:31:25 +0900
Thanks Quintus. I'll get around to playing with this today.
Hi Cliff,
So I am slowly stumbling my way through this. I know I've got quite a bit
On Tue, 05 Mar 2013 06:25:50 +0100, Cliff Rosson <cliff.rosson@gmail.com> wrote:
I've tried to do some reading but some of this is a bit over my head.
Haven't been able to touch this in a week but I had a few minutes to look
On Sun, 10 Mar 2013 04:41:32 +0100, Cliff Rosson <cliff.rosson@gmail.com> wrote:
Got ya. So it doesn't really matter if I convert things to ID and compare
Rereading this, I suspect that you might have mis-analyzed the issue. I
On Tue, Mar 12, 2013 at 12:28 AM, Josh Cheek <josh.cheek@gmail.com> wrote:
On Tue, Mar 12, 2013 at 4:05 PM, tamouse mailing lists <
On Tue, Mar 12, 2013 at 4:35 PM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#405271] Confusion with Ruby's "case/when" block statement — "Kumar R." <lists@...>
Ruby uses `===` operator on the `case/when` type execution style.Now It
Actually the below paragraph made me confused: from the link :
On Mon, Mar 4, 2013 at 6:41 PM, Kumar R. <lists@ruby-forum.com> wrote:
[#405297] Can't get If statement right — Kat VS <lists@...>
mainMenu = "Main Menu:
I was wondering if I should switch to a case statement.. But, I am way
[#405310] How `next` works in ruby with `unless` ? — "Kumar R." <lists@...>
The `next` statement is used to skip a part of the loop and continue
Learn what semicolons do in Ruby.
What Joel said.
Matthew Kerwin wrote in post #1100097:
People are so incredibly brash on this forum sometimes. Makes for a cold
What do you think the only possible order of execution would be? It's not
John W Higgins wrote in post #1100104:
Kumar R. wrote in post #1100105:
Am 05.03.2013 19:18, schrieb Kumar R.:
On Tue, Mar 5, 2013 at 7:23 PM, <sto.mar@web.de> wrote:
Robert Klemme wrote in post #1100233:
On Tue, Mar 5, 2013 at 7:38 PM, Hans Mackowiak <lists@ruby-forum.com> wrote:
[#405323] YourLanguageSucks — Kiswono Prayogo <kiswono@...>
Hi, i found this link.. https://wiki.theory.org/YourLanguageSucks
if only people with this much energy for complaining could channel it into
On Mon, Mar 4, 2013 at 7:39 PM, Kiswono Prayogo <kiswono@gmail.com> wrote:
On Tue, 05 Mar 2013 07:12:05 +0100, Josh Cheek <josh.cheek@gmail.com> wrote:
On Tue, Mar 5, 2013 at 8:57 AM, Bartosz Dziewoki <matma.rex@gmail.com> wrote:
[#405334] Inconsistent Array#slice behavior? — "Jack R." <lists@...>
Given x = [],
[#405371] ruby 1.9.3 rpms — Matt Lawrence <matt@...>
Is there a good source for ruby 1.9.3 rpms for CentOS 6? The base
[#405376] When can one call themselves a “Rubyist”? — Rafal Chmiel <lists@...>
I was wondering what that term even meant. Is it something to do with
I think a Rubyist is just anyone who writes in Ruby. Reading anything
I remember reading this on a blog somewhere, but the stages of rubyism was
[#405383] Use html appearance without any gem — Ebru Akagunduz <lists@...>
Hi, i provide html appearance with ruby-gtk-webkit gem. Can i provide
[#405400] Bignum-Fixnum-Numeric confusion — Pritam Dey <lists@...>
Hi,
From the doc: http://ruby-doc.org/core-1.9.3/Fixnum.html
[#405414] Persisting and loading objects trhough Marshal problem — "Damián M. González" <lists@...>
Hello people. Today I've found a bug in my source code, been around for
Good question. See, I marshal them in differents times. Because I don't
[#405426] Compare Zulu time — robert lengu <lists@...>
Hi
[#405427] Numbers and groups. — "Andrew l." <lists@...>
Hello everybody i am a new ruby user and i learn best by doing. so i am
[#405432] Coupling vs providing dependencies in Ruby — Tom Kos <lists@...>
I'm java programmer diving into Ruby language (not rails stuff). Looking
[#405436] Resolv class caching /etc/hosts entries — Timur Alperovich <timur.alperovich@...>
Hey guys,
[#405444] Question regarding automating some Outlook/IMAP and pdf parsing functions w/ ruby? — Ed Zimmerman <lists@...>
Hello,
In that case the 271st email in your inbox is an object which doesn't
Am 10.03.2013 19:17, schrieb Joel Pearson:
Am 10.03.2013 19:26, schrieb sto.mar@web.de:
[#405476] methods in subclasses — john rxjmo <lists@...>
Hi,
[#405477] Compiling Ruby 2.0, problem with OpenSSL — "Piotr P." <lists@...>
Trying to compile Ruby 2.0 from source, having problem with it, getting
Managed to solve the problem with compiling openssl like this:
[#405495] RubyExcel class. Useful? — Joel Pearson <lists@...>
I've managed to create a (relatively) stable data-processing class which
Aha! I have learned how to use Github.
Uh oh, I think I've backed myself into a corner...
[#405499] RbNaCl 1.0.0: Cryptography for Ruby that doesn't suck — Tony Arcieri <tony.arcieri@...>
I'm happy to announce the first public release of RbNaCl, a Ruby binding to
[#405512] Serif version 0.3.1 released — Adam Prescott <adam@...>
Serif is a file-based blogging engine with an optional admin interface
[#405534] Segmentation fault while compiling ruby 1.9.3p392 with OpenSSL 1.0.1e installed — "Piotr P." <lists@...>
I'm trying to have my Rails website running on my fresh installation of
Hi,
[#405538] type casting and connversion in ruby — "Kumar R." <lists@...>
In programming world type casting and type conversion has completely
[#405570] Confusion with block local variable declaration with block variable declaration within the pipe `|` — Love U Ruby <lists@...>
Why are we not allowed to create local variables or new object with
Your first example does not work for me in any version of Ruby. But this
[#405597] Confusion with empty block printing — Love U Ruby <lists@...>
When I typed the below in my IRB:
i mean the blocks you used in http://www.ruby-forum.com/topic/4411871
here I am making my confusions are more specific:
[#405608] Access values for JSON.parse response — Nicole Villette <lists@...>
Hello, Does anyone know who to get the values from a nested hash in
Nicole Villette wrote in post #1101133:
By the way, I corrected this on the forum but it's still wrong in
Joel Pearson wrote in post #1101386:
[#405626] Is it possible to run Tcl from Ruby? — "Ishaan B." <lists@...>
Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk
[#405630] Confusion with some Module methods. — Love U Ruby <lists@...>
Can anyone help me to understand how the below module methods works?
[#405634] no such file to load -- yaml (LoadError) — "Mitesh S." <lists@...>
Hello
[#405642] Confusion — Robert Klemme <shortcutter@...>
http://www.discogs.com/Electric-Light-Orchestra-The-Confusion-Last-Train-To-London/release/1229906
On Tue, Mar 12, 2013 at 8:48 AM, Robert Klemme
[#405647] Question about using an automated date stamp for an abbreviation in the SciTE Editor Abbreviations File — Harry Truax <htruax@...>
Hello,
On Tue, Mar 12, 2013 at 6:14 PM, Harry Truax <htruax@stf.com> wrote:
[#405656] Confusion with Strings — Love U Ruby <lists@...>
From the book I read a line about string :
@Scott.
Language problems here. Not worth getting worked up over imho.
Are you really saying that you don't understand the concept of one
[#405695] ideas on how to determine tag — Wayne Brissette <wbrisett@...>
I'm working on a script that examines a DITA XML file and tries to determine where we put conrefs (where content is being pulled from). I have most of the code working but I'm trying now to determine what type of element something comes from.
[#405719] Difference of Module#included and Module#extended and Module#prepended — Love U Ruby <lists@...>
Can anyone help me to understand the below 3 methods about their
[#405720] cannot get blocks working — Aashish Kiran <lists@...>
Hi,
[#405754] Singleton method — Love U Ruby <lists@...>
C:\>ruby -v
[#405762] Understanding Ruby Classes, Objects and Methods. — Kedar Mhaswade <lists@...>
Dear Rubyists,
On Wed, Mar 13, 2013 at 11:20 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
Thanks, Robert!
On Thu, Mar 14, 2013 at 1:57 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
>>> abc is an instance of String
On Thu, Mar 14, 2013 at 2:42 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1101602:
On Thu, Mar 14, 2013 at 3:14 PM, Kedar Mhaswade <lists@ruby-forum.com> wrote:
[#405770] Tool Database — "Andrew l." <lists@...>
Hello everybody back again and still very confused, I need to know if
[#405804] No form name in page - Ruby Mechanize — Rochit Sen <lists@...>
Hi All,
[#405807] confusion with singleton method call — Love U Ruby <lists@...>
C:\>irb --simple-prompt
Can anyone help me here?
[#405820] Selenium. catching Body class value — "Mattias A." <lists@...>
I have a site where my script changes language on the site. To verify
[#405828] Retrieves the count for the list of entries - not working — "Syed H." <lists@...>
def get_entry_count(type)
[#405844] IO buffering problem — Andrew Wagner <wagner.andrew@...>
All,
Hi Andrew,
[#405854] RubyVM::InstructionSequence compiling and loading — Mike Owens <mikeowens@...>
I recently came across "An Amateur Smalltalk User's Observations on
[#405855] combine two regular expressions — Ken Paul <lists@...>
Hi there,
[#405869] control the concurrent thread numbers — Ken Paul <lists@...>
Hi,
On Sat, Mar 16, 2013 at 12:13 PM, Ken Paul <lists@ruby-forum.com> wrote:
"Jes炭s Gabriel y Gal叩n" wrote in post #1101925:
[#405883] Ruby-GNOME2 1.2.3 — Kouhei Sutou <kou@...>
Hi,
Testing on Windows 7, Ruiby 2.0.0
[#405884] Confusion with `nil` output from the method Symbol#<=> — Love U Ruby <lists@...>
Symbol#<=> ->
[#405893] Ruby-2.0.0-rc2 on Windows under Cygwin. Cannot run IRB, gem, rake, etc — Wins Lin <lists@...>
Hello.
[#405897] Re: confusion with singleton method call — "plugatariov@..." <plugatariov@...>
[#405907] forked child processes — Ken Paul <lists@...>
Hi,
[#405928] Copy-on-write — Ken Paul <lists@...>
Hi,
[#405931] Finding one's way with 'super' in define_method/alias_emthod — Marcin Rzeźnicki <marcin.rzeznicki@...>
Hi all!
On Mon, Mar 18, 2013 at 5:50 PM, Marcin Rze添nicki
Robert Klemme wrote in post #1102151:
On Mon, Mar 18, 2013 at 8:39 PM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102170:
On Tue, Mar 19, 2013 at 2:46 PM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102288:
On Thu, Mar 21, 2013 at 11:31 AM, Marcin R. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1102581:
[#405941] Multiple environments in a single process — Tim Mahoney <lists@...>
I'm using the Ruby C API to execute Ruby scripts, and I need each script
I believe this can be done. We can enclose all the VM state variables
[#405947] Cisco Ruby pexpect equivalent — Steve Jarvis <lists@...>
Hi All,
On Tue, Mar 19, 2013 at 1:14 AM, Steve Jarvis <lists@ruby-forum.com> wrote:
[#405948] Error in method call - need help to understand — Pritam Dey <lists@...>
I was trying to call a method as below:
[#405954] Algorithmic complexity — "Rotar D." <lists@...>
Hi,
[#405975] DCell 0.13.0: actor-based distributed objects for Ruby — Tony Arcieri <tony.arcieri@...>
DCell 0.13.0 is out!
[#405980] library sdl (cannot load such file) — Deniz Po <lists@...>
Why i have always:
Subject: library sdl (cannot load such file)
Hey, can you post more information? Do you have any file that is requiring
Subject: Re: library sdl (cannot load such file)
[#405986] Ruby tainting on primitives — "Nicolas V." <lists@...>
Hi there,
[#405987] Why was the object_id for true and nil changed in ruby2.0? — Bharadwaj Srigiriraju <lists@...>
irb(main):001:0> true.object_id
hm the forumtopic i linked was in english ...
Hans Mackowiak wrote in post #1102451:
your question was already answered at stackoverflow:
[#405991] Confusion with has object creation. — Love U Ruby <lists@...>
I know we create Hash object with Hash.new,it calls `initialize` method.
[#406007] Can't run sudo under ssh.exec! — Tim Ash <lists@...>
Hi,
[#406015] fixedpnt 0.0.1: Binary Fixed Point Calculations — Axel Friedrich <lists@...>
https://github.com/Axel2/fixedpnt.rb
On 03/20/2013 07:25 AM, Axel Friedrich wrote:
> A random api suggestion... consider using #[]= as an alias for #assign,
[#406039] Need to change loudness of a mp3 file using ruby script — chandan mallik <lists@...>
I need to change the loudness of a mp3 file using mp3gain.I am toatally
Subject: Need to change loudness of a mp3 file using ruby script
Carlo E. Prelz wrote in post #1102552:
Subject: Re: Need to change loudness of a mp3 file using ruby script
Thanks Carlo. BTW I found the solution and have successfully
[#406091] Differences between Ruby 1.9.2 and 1.9.3 — "Dusan D." <lists@...>
Hi,
[#406106] Replacement for webdriver-user-agent (use with watir-webdriver) — tamouse mailing lists <tamouse.lists@...>
I notice that the gem pointed to in the watir documentation that
[#406110] Need to parse a list of checkboxes - ruby mechanize — Rochit Sen <lists@...>
Hi All,
[#406118] Writing a game, trying to make dynamic loops — "Nick G." <lists@...>
Hey there,
[#406141] Confusion with Array#map — Love U Ruby <lists@...>
Hi could anyone help me how does the below concept helped to produce the
map iterates through the given array and collects the results with the a
[#406146] Choice of methods/implementation (was: Writing a game, trying to make dynamic loops) — tamouse mailing lists <tamouse.lists@...>
Since otherwise I'd be hijacking, I'm starting a new thread on this:
On Mon, Mar 25, 2013 at 7:55 PM, tamouse mailing lists
[#406155] Need help on Kernel#eval — Love U Ruby <lists@...>
From the link -> http://www.ruby-doc.org/core-2.0/Binding.html
[#406184] Nokogiri help parsing HTML — Paul Mena <lists@...>
I'm relatively new to Ruby (and therefore Nokogiri) and am trying to
[#406192] Need help on ARGF#skip — Pritam Dey <lists@...>
from the doc: http://www.ruby-doc.org/core-2.0/ARGF.html#method-i-skip
[#406217] Arbitrary end of a string by using Nullbyte's symbol (Ruby 1.9.3p194) — "Preth H." <lists@...>
A couple of days ago I was doing a dummy app using RoR 3.2.12 and ruby
On Wed, Mar 27, 2013 at 6:53 PM, Preth H. <lists@ruby-forum.com> wrote:
[#406225] undefined local variable or method 'math' — Don Pick <lists@...>
I am learning Ruby.
[#406251] Windows ruby.exe association with .rb — Regis d'Aubarede <lists@...>
Hello,
[#406252] Ruby 2.0 bytecode export / import — Andras Horvath <lists@...>
Hi Everyone!
[#406254] Find usb properties/details using ruby-dbus and udisk — sundar sundar <lists@...>
I am doing project in which i need to detect all available usb drives
[#406255] Confusion with setter method — Love U Ruby <lists@...>
C:\>irb --simple-prompt
[#406258] Translation Project — Jeremy Henderson <lists@...>
Hello all! This is my first post! I started learning Ruby about 3 weeks
Yes, I love how compressed it is. Like Regis' though, it can't handle
[#406259] Chris Pine Leap Year — "Phil H." <lists@...>
This one is stumping me because of all the variables needed. Only thing
[#406261] clear the STDIN — Love U Ruby <lists@...>
C:\>irb --simple-prompt
[#406291] Hash with default — Harry Kakueki <list.push@...>
I would like to make a hash like h2 with the default described by h in one
[#406301] Program with shuffle program — Vincent Stowbunenko <lists@...>
I am trying to make my own shuffle method instead of the build-in one.
[#406312] Nil or enter with no input — "Phil H." <lists@...>
How can I tell if someone has enter nothing in a gets prompt, they only
[#406316] Ruby Typing? — "John n/a" <lists@...>
Hi everyone. I'm very new to ruby development. I coming form .Net side
[#406332] reconsidered 0.9.2 Released — Jim Wise <jwise@...>
[#406368] Grasping methods like "to_s"? — "Rafal C." <lists@...>
Hi, I'm posting here to quickly ask you: how is one able to do something
On Sat, Mar 30, 2013 at 4:49 PM, Rafal C. <lists@ruby-forum.com> wrote:
Or perhaps just
On Sat, Mar 30, 2013 at 11:30 PM, Peter Hickman <
[#406375] Ruby Gotchas presentation slides — Dave Aronson <rubytalk2dave@...>
I recently made available the slides for a presentation I did
On Sat, Mar 30, 2013 at 6:55 PM, Dave Aronson <rubytalk2dave@davearonson.com
On Sun, Mar 31, 2013 at 2:36 AM, Josh Cheek <josh.cheek@gmail.com> wrote:
[#406378] installing ruby 2.0 -- no checksum error — 7stud -- <lists@...>
$ rvm install ruby-2.0.0-p0
[#406387] Private setters can be called by self, why not getters? — Josh Cheek <josh.cheek@...>
class Counter
You have to define setters and getters in ruby more carefully, when you
[#406389] uninitialized constant ActiveRecord (NameError) — jonathan kav <lists@...>
Hallo
[#406396] respond_to? vs include? — Edoardo Rossi <edd.rossi@...>
Hi everybody...
Your benchmark looks okay. I added a comment to your Gist about a fork
On Mon, Apr 1, 2013 at 12:07 AM, Adam Prescott <adam@aprescott.com> wrote:
ANN: Sequel 3.45.0 Released
Sequel is a lightweight database access toolkit for Ruby.
* Sequel provides thread safety, connection pooling and a concise
DSL for constructing SQL queries and table schemas.
* Sequel includes a comprehensive ORM layer for mapping records to
Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
statements, bound variables, stored procedures, savepoints,
two-phase commit, transaction isolation, master/slave
configurations, and database sharding.
* Sequel currently has adapters for ADO, Amalgalite, CUBRID,
DataObjects, DB2, DBI, Firebird, IBM_DB, Informix, JDBC, MySQL,
Mysql2, ODBC, OpenBase, Oracle, PostgreSQL, SQLite3, Swift, and
TinyTDS.
Sequel 3.45.0 has been released and should be available on the gem
mirrors.
= New Features
* Database#transaction now recognizes a :retry_on option, which
should contain an exception class or array of exception classes.
If the transaction raises one of the given exceptions, Sequel
will automatically retry the transaction block. It's a bad idea to
use this option if the transaction block is not idempotent.
By default, Sequel only retries the block 5 times by default,
to protect against infinite looping. You can change the number
of retries with the :num_retries option.
Users of the :disconnect=>:retry option are encouraged to switch
to :retry_on=>Sequel::DatabaseDisconnectError.
* Dataset#escape_like has been added for escaping LIKE
metacharacters. This is designed for the case where part of
the LIKE pattern is based on user input that should not treat the
metacharacters specially.
* Serialization failures/deadlocks are now raised as
Sequel::SerializationFailure exception instances. This exception
class is a good candidate for the transaction :retry_on option.
* On PostgreSQL, you can now provide the :force_standard_strings
and :client_min_messages Database options to override the defaults
on a per-instance basis.
* On PostgreSQL, Database#tables and #views now recognizes a
:qualify option, which if true will return qualified identifiers
instead of plain symbols.
* Transaction isolation levels are now supported on Oracle, DB2,
and all jdbc subadapters using the JDBC transaction support.
* Dataset.def_mutation_method now accepts a :module option for
the module in which to define the methods (defaulting to self).
* An unlimited_update plugin has been added. It's sole purpose is to
eliminate a MySQL warning in replicated environments, since by
default Sequel::Model uses a LIMIT clause when updating on MySQL.
* The named_timezones extension now adds a
Sequel.tzinfo_disambiguator accessor to automatically handle
TZInfo::AmbiguousTime exceptions. This should be a callable object
that accepts two arguments, a DateTime instance and an array of
timezone periods, and returns the timezone period to use.
= Other Improvements
* Sequel now handles JSON securely, specifying the
:create_additions=>false option when using JSON.parse. If you
really want to get the old vulnerable behavior back, override
Sequel.parse_json.
* The json_serializer and xml_serializer plugins are now secure
by default. Before, the default behavior of these plugins
allowed for round tripping, such that:
Album.from_xml(album.to_xml) == album
Unfortunately, that requires that the deserialization allow
the setting of any column. Since the plugins also handle
associations, you could also set any column in any associated
object, even cascading to associated objects of those objects.
The new default behavior only allows deserialization to set
the same columns that mass-assignment would set, and not to
handle associated objects at all by default. The following
additional options are supported:
:fields :: The specific fields to set (this was already supported
by the json_serializer plugin).
:associations :: The specific associations to handle.
:all_columns :: The previous behavior of setting all columns.
:all_associations :: The previous behavior of setting all
associations.
Since JSON parsing no longer deserializes into arbitrary ruby
instances, from_json and array_from_json class methods have been
added to the json_serializer plugin, for deserializing into model
instances. These mirror the from_xml and array_from_xml class
methods in the xml_serializer plugin.
Note that the :all_columns and :all_associations methods were
only added to make backwards compatibility easier. It is
likely they will be removed in Sequel 4, along with the
json_create class method.
* Sequel now attempts to use database specific error codes or
SQLState codes instead of regexp parsing to determine if a more
specific DatabaseError subclass should be used. This should make
error handling faster and more robust.
* Sequel now uses ESCAPE '\' when using LIKE, for similar behavior
across databases. Previously, no ESCAPE clause was used, so
behavior differed across databases, with most not using escaping,
and PostgreSQL, MySQL, and H2 defaulting to backslash as the escape
character.
* The query extension has been reimplemented and now uses a proxy
object instead of Object#extend.
* The :pool_timeout Database option now supports fractional seconds.
* Database#quote_identifier is now a public method.
* Metadata parsing (schema, indexes, foreign_key_list) on PostgreSQL
now correctly handles the case where an unqualified table name is
used and tables with that name exist in multiple schemas. It now
picks the first matching table in the schema_search_path, instead of
failing or returning results from all tables.
* Sequel::Model instances no longer attempt to typecast the money
type on PostgreSQL, since the previous typecast didn't work
correctly, and correct typecasting is locale-dependent.
* Sequel no longer picks up foreign keys for tables in other
databases when using Database#foreign_key_list on MySQL.
* A warning when using the mysql2 3.12 beta has been eliminated.
* A warning has been eliminated when using the jdbc/oracle adapter
on JRuby 1.7.
* Sequel's ilike emulation should now work by default on databases
without specific syntax support.
* Dataset#from_self! no longer creates a self referential dataset.
* Coverage testing now uses simplecov instead of rcov on ruby 1.9+.
= Backwards Compatibility
* The switch to using JSON.parse :create_additions=>false means
that if your app expected JSON to deserialize into arbitrary
ruby objects, it is probably broken. You should update your
application code to manually convert the deserialized hashes
into the ruby objects you want.
Note that it's not just this new version of Sequel that will
cause that, older versions of Sequel will break in the same
way if you update your JSON library to a version that is not
vulnerable by default.
This potentially affects the pg_json extension and serialization
plugin if you were expecting the JSON stored in the database
to be deserialized into arbitrary ruby objects.
See the json_serializer/xml_serializer changes mentioned in
the Other Improvements section.
* The reimplemented query extension is not completely backwards
compatible. For example, inside a query block, self refers to the
proxy object instead of a dataset, and calling methods that return
rows no longer raises an exception.
* The metadata parsing methods on PostgreSQL no longer work with
unqualified tables where the table is not in the schema search
path. This makes metadata parsing consistent with how datasets
operate. For tables outside the schema search path, you must
qualify it before use now.
Additionally, using a nonexistent table name will raise an
exception instead of returning empty results in some cases.
* The Dataset#def_mutation_method instance method has been removed.
This method added mutation methods directly on the dataset instance,
which is generally not desired. Using the def_mutation_method class
method with the :module option is now the recommended approach.
* The switch to using ESCAPE for LIKE characters is backwards
incompatible on databases that don't use escaping by default,
when backslash is used in a LIKE pattern as a regular character.
Now you have to double the backslash in the pattern.
* Database#database_error_regexps private method now can return any
enumerable yielding regexp/exception class pairs, it is no longer
specified to return a hash.
Thanks,
Jeremy
* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {Bug tracking}[http://github.com/jeremyevans/sequel/issues]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
--
Posted via http://www.ruby-forum.com/.