Up to [cvs.NetBSD.org] / pkgsrc / databases / ruby-mysql
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
databases/ruby-mysql: update to 3.0.1
pkgsrc change:
* Switch to use gem, 3.0 release.
* Change HOMEPAGE to github page.
[3.0.1] - 2022-06-18
* LICENSE: correct author
* FIX: correct LOAD DATA LOCAL INFILE result information.
* FIX: reset SERVER_MORE_RESULTS_EXISTS when error packet is received.
* FIX: close the socket when the connection is disconnected.
* FIX: allow multiple results by default.
[3.0.0] - 2021-11-16
* Mysql.new no longer connect. use Mysql.connect or Mysql#connect.
* Mysql.init is removed. use Mysql.new instead.
* Mysql.new, Mysql.conncet and Mysql#connect takes URI object or URI string
or Hash object.
example:
Mysql.connect('mysql://user:password@hostname:port/dbname?charset=ascii')
Mysql.connect('mysql://user:password@%2Ftmp%2Fmysql.sock/dbname?charset=ascii') # for UNIX socket
Mysql.connect('hostname', 'user', 'password', 'dbname')
Mysql.connect(host: 'hostname', username: 'user', password: 'password', database: 'dbname')
* Mysql.options is removed. use Mysql#param = value instead. For example:
m = Mysql.init m.options(Mysql::OPT_LOCAL_INFILE, true)
m.connect(host, user, passwd)
change to
m = Mysql.new m.local_infile = true
m.connect(host, user, passwd)
or
m = Mysql.connect(host, user, passwd, local_infile: true)
* Mysql::Time is removed. Instead, Time object is returned for the DATE,
DATETIME, TIMESTAMP data, and Integer object is returned for the TIME
data. If DATE, DATETIME, TIMESTAMP are invalid values for Time, nil is
returned.
* meaningless methods are removed:
bind_result
client_info
client_version
get_proto_info
get_server_info
get_server_version
proto_info
query_with_result
* alias method are removed:
get_host_info: use host_info
real_connect: use connect
real_query: use query
* methods corresponding to deprecated APIs in MySQL are removed:
list_dbs: use SHOW DATABASES
list_fields: use SHOW COLUMNS
list_processes: use SHOW PROCESSLIST
list_tables: use SHOW TABLES
databases: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes The following distfiles could not be fetched (some may be only fetched conditionally): ./databases/cstore/distinfo D6.data.ros.gz ./databases/cstore/distinfo cstore0.2.tar.gz ./databases/cstore/distinfo data4.tar.gz
databases: Remove SHA1 distfile hashes
databases/ruby-mysql: udpate to 2.9.14 Better support for MySQL 5.7. * avoid warning * add collations and constants from MySQL 5.7.10 * support JSON type on MySQL 5.7
Add SHA512 digests for distfiles for databases category Problems found with existing distfiles: distfiles/D6.data.ros.gz distfiles/cstore0.2.tar.gz distfiles/data4.tar.gz distfiles/sphinx-2.2.7-release.tar.gz No changes made to the cstore or mariadb55-client distinfo files. Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
Update to 2.9.13 * Fix build with Ruby 2.2. * Use setup.rb instead of extconf.rb. * Use GITHUB framework. Changelog: Not available.
Update databases/ruby-mysql to 2.8.2.
* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Add LICENSE.
* Remove RUBY_HAS_ARCHLIB.
* Add PKG_DESTDIR_SUPPORT.
* Private patch isn't needed any more.
version 2.8.2
* Fix: Mysql#insert_id returns invalid value when larger than 2**32.
Update ruby-mysql package to 2.8.1.
pkgsrc change:
* Add commented out LICENSE (not sure GPL's version).
* Enable DESTDIR support.
2009-02-01
version 2.8.1
* correspond to Ruby 1.9.1
2008-09-29
version 2.8
version 2.7.7
* When connecting to MySQL, EINTR is occurred sometimes ([ruby-dev:31842])
* MySQL/Ruby 2.7.* can not be compiled on Ruby 1.8.5.
Update ruby-mysql package to 2.7.6.
2008-06-17
version 2.7.6
* On 64bit machine, Mysql::Stmt#execute raise error on large numeric
value(>= 2**30).
2008-03-08
version 2.7.5
* On 64bit machine, Mysql::Stmt#fetch return invalid numeric value.
2007-12-26
version 2.8pre1
* for Ruby 1.9.0
* Incompat: Mysql::Result#each_hash don't create column name string each
row. it's shared.
* Incompat: Mysql#query with block no longer turn on multi-statements
mode automatically.
2007-08-22
version 2.7.4
* BUG: Mysql::Stmt#execute memory leak.
Fix build on platforms which don't define ulong by default like DragonFly.
Update ruby-mysql package to 2.7.3.
2006-12-20
version 2.7.3
- BUG: Mysql#query with block is stopped when last query failed.
2006-10-28
version 2.7.2
- BUG: Mysql::Stmt#result_metadata don't return nil. (Thanks to
Hidetoshi)
- BUG: Mysql#close check mysql_errno.
- BUG: multistatement Mysql#query with block ignore error.
- extconf.rb for Visual C++. (Thanks to Shugo Maeda)
- support MySQL BIT type.
- add Mysql::Field::TYPE_BIT, TYPE_NEWDECIMAL.
- Use "--with-mysql-config" option to CONFIGURE_ARGS. - Include my_global.h header to make sure to define "ulong" on FreeBSD and DragonFly BSD. Bump PKGREVISION.
Update ruby-mysql to 2.7.1. o change free() to xfree(). To avoid crash on Windows. (Thanks Tobias Grimm)
Stop handling DIST_SUBDIR default for Ruby based packages. Second, update distinfo and/or stop using USE_RUBY_DIST_SUBDIR in Makefiles.
Update ruby-mysql pacakge to 2.7.
Changes:
2005-08-22
version 2.7
* add constants for Mysql#options: Mysql::OPT_GUESS_CONNECTION,
Mysql::OPT_USE_EMBEDDED_CONNECTION,
Mysql::OPT_USE_REMOTE_CONNECTION, Mysql::SET_CLIENT_IP
* test.rb: for 4.0.x, 5.0.x
2005-08-16
version 2.7-beta3
* add Mysql::Stmt#bind_result
2005-08-02
version 2.7-beta2
* BUG: mysql.c.in: fetch_hash: nil value doesn't exist in
hash. (Thanks Stefan Kaes)
* add constant Mysql::VERSION.
* add Mysql#prepare
2005-07-24
version 2.7-beta
* add Mysql#stmt_init method
* add Mysql::Stmt, Mysql::Time, Mysql::RowOffset class
* add Mysql::Error#sqlstate method
* change offset value to Mysql::RowOffset object that is used
by Mysql::Result#row_seek,row_tell
2005-07-31
version 2.6.3
* add constant Mysql::VERSION.
2005-07-26
version 2.6.2
* BUG: mysql.c.in: fetch_hash: nil value doesn't exist in
hash. (Thanks Stefan Kaes)
2005-06-28
version 2.6.1
* mysql.c.in: fix to compile error on MacOSX.
Update ruby-mysql package to 2.6. (not security fix but leaf pacakge.) pkgsrc changes: - Change HOMEPAGE in English. - Add style sheet to installed documents. distribution changes: 2005-04-25: version 2.6 * add constants for Mysql#option(): Mysql::OPT_PROTOCOL, Mysql::OPT_READ_TIMEOUT, Mysql::OPT_WRITE_TIMEOUT, Mysql::SET_CHARSET_DIR, Mysql::SET_CHARSET_NAME, Mysql::SHARED_MEMORY_BASE_NAME, Mysql::SECURE_AUTH * add methods: Mysql#more_results?(), Mysql#next_result(), Mysql#set_server_option(), Mysql#sqlstate() * add constants for Mysql#connect(): Mysql::CLIENT_MULTI_STATEMENTS, Mysql::CLIENT_MULTI_RESULTS * add constants for Mysql#set_server_option(): Mysql::OPTION_MULTI_STATEMENTS_ON, Mysql::OPTION_MULTI_STATEMENTS_OFF * add Mysql#query() with block * add Mysql#reconnect(), Mysql#reconnect=() * When connection was closed, it don't try to reconnect by default. 2005-02-12: version 2.5.2 * BUG: Mysql#connect make object to not close. (Thanks Andres Salomon)
Add RMD160 digests in addition to SHA1 ones.
Update ruby-mysql package to 2.5.1 migrating to use new framework
for Ruby packages.
2004-09-20
version 2.5.1
* add Mysql#set_ssl().
2004-08-31
version 2.5
* correspond to MySQL 4.1.x.
* change MysqlRes, MysqlField, MysqlError to Mysql::Result,
Mysql::Field, Mysql::Error.
* add Mysql.client_version(), Mysql.get_client_version(),
Mysql#client_version(), Mysql#get_client_version(),
Mysql#server_version(), Mysql#get_server_version(),
Mysql#warning_count(), Mysql#commit(), Mysql#rollback(),
Mysql#autocommit().
* add Mysql::Field#is_not_null?(), Mysql::Field#is_pri_key?(),
Mysql::Field#is_num?().
* add MysqlField::TYPE_VAR_STRING.
Update ruby-mysql pacakge to 2.4.5.
Changes from web page:
2003-08-10 2.4.5
* extconf.rb: correspond to MySQL 4.1.
* mysql.c.in: correspond to Ruby 1.8.
2003-02-23 2.4.4a
* make extconf.rb to correspond to Ruby 1.8.0
2003-01-29 2.4.4
* add Mysql::OPT_LOCAL_INFILE.
* add --with-mysql-config option to extconf.rb.
* extconf.rb automatically detect typical library.
2003-01-05 2.4.3c
* modified English README. Thanks to Paul DuBois.
2002-12-24 2.4.3b
* make extconf.rb to correspond to Ruby 1.6.8.
2002-11-07 2.4.3a
* fix bug duplicating constant.
2002-09-10 2.4.3
* for error number with prefix ER_ .
* get error constant from errmsg.h and mysqld_error.h automatically.
2002-03-31 2.4.2a
* change extconf.rb.
Importing ruby-mysql package, extension library to access a MySQL database from Ruby. Based on PR pkg/14302 with slightly modification and newer version, 2.4.2.
Initial revision