Commit graph

37 commits

Author SHA1 Message Date
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
wiz
c18f83a383 Update to 1.48:
1.48 Sun Mar 11 05:24:40 UTC 2007

* Fix a problem when left joins optimizer fails to calculate a boolean
  expression because of lower case aggregators.
2007-06-08 11:20:03 +00:00
wiz
32601b3577 Update to 1.47:
1.47 Sun Mar 4 03:30:00 UTC 2007

* Do the search in unions only when we must do them, not on every
  call to the Next method
* Don't index ex/ dir to avoid complains by the indexer of PAUSE/CPAN

1.46 Sun Feb 25 19:04:00 UTC 2007

* when doing a union, we need to actually search, rather than just
  doing a count
* add support for testing with Oracle backend
* Use CROSS JOIN instead of ',' as SQL parsers in Pg and some mysql
  are buggy and cannot parse "FROM X, Y JOIN Z ON Z.f = X.f"
* deprecate DEBUG method, it's still there but produce warning
* fix CleanSlate method that was missing several keys
* fix a long standing bug we had, we didn't write depends_on data about
  a join, so we could build queries with incorrect parens around join
  conditions
* fix default values for ALIAS1 argument in the Join method, istead of
  defaulting FIELD1 to 'main' value
* fix a TODO test
* internal refactoring of a storage for query's conditions,
  instead of building query strings right after the limit
  or join, we now build a perl structure
* don't clone attributes that don't exists in the Clone method
* we use Encode module without perl version check for a long time, so
  we can get rid of all checks for the version and load the module
  at compile time everywhere we need it
* implement MayBeNull method in the handler that checks if applied
  conditions allow NULLs in the result set
* implement cascaded LEFT JOINs optimization
* additional tests for CleanSlate and Clone methods, ENTRY_AGGREGATOR
  argument, different types of joins and LEFT JOIN optimizer
2007-03-10 15:02:53 +00:00
wiz
ac504a2acc Update to 1.45:
1.45 Tue Sep 26 11:08:20 EDT 2006

* Postgres fixes:
** fix "$rec->Create();"
** fix "$rec->Create( IntegerColumn => '' );"
** fix "$rec->SetIntegerColumn( '' );"
** add test

* Cache changes
** cleanup ::Record::Cachable
** use cache in:
    $a->LoadByCols(...);
    $b->LoadById( $a->id );
** add cache tests

1.44
* DBIx::SearchBuilder::Handle::DatabaseVersion enhancements
2007-02-18 02:35:03 +00:00
wiz
998b4200ec Update to 1.43:
1.43 Wed Apr 12 13:59:58 EDT 2006
* Fix to the sequence compatibility fixes. For backwards compatibility.

1.42 Mon Apr 10 11:27:39 EDT 2006
* Signatures fixed

1.41 Mon Apr 10 11:26:19 EDT 2006
* PG 8.1 sequence compatibility fixes from Daniel Tabuenca

1.40 not released yet
* 'NOT STARTSWITH' and 'NOT ENDSWITH'
2006-07-19 22:33:42 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
wiz
0cee97296a Update to 1.39:
1.39 Thu Feb 16 16:27:42 PST 2006
* Allow ORs on left joins
2006-02-26 09:24:36 +00:00
wiz
711eb873c2 Update to 1.38:
1.38 Thu Dec 29 03:17:54 EST 2005
* Released 1.37 dev series

1.37_01 Thu Dec  8 15:56:50 EST 2005
* Switched Postgres sequence lookups to use CURRVAL, rather than OIDs

1.36 Fri Dec  2 18:04:21 EST 2005

* Change to how we resolve virtual columns to deal with a
  "no such attribute" bug in RT
2006-01-03 18:05:53 +00:00
wiz
62d51f024c Update to 1.35:
1.35 Wed Nov  2 22:36:02 EST 2005
* Doc fixes and OrderBy cleanup from ruslan

1.34 Wed Nov  2 22:26:15 EST 2005

* Clone support from Ruslan

1.33 Thu Sep 22 14:27:46 EDT 2005

* Better SQL statement logging from alex


1.32 Thu Sep  1 06:52:42 EDT 2005

* DBD::SQLite is necessary for the test suite to run correctl

1.31 Fri Jul 29 12:47:25 EDT 2005

* Updated MANIFEST to fix a build issue -
    Thanks to Andy Lester and David Glasser

1.30 Thu Jul 28 10:17:27 EDT 2005

*  Removed {{{ and  }}} fold markers. Patch from Ruslan

1.30_03 Thu Jun  9 01:35:49 EDT 2005
* Significant new tests from Ruslan Zakirov and Dave Glasser

* You no longer need to explicitly bless a DBIx::SearchBuilder::Handle subclass

* Start of a major overhaul of the subclass API for DBIx::SearchBuilder::Record objects.
  A new "schema" method will define the data in _ClassAccessible and also generate database
  schema using DBIx::DBSchema.

Fixes from Ruslan:

    * for numeric types, make the empty check be "null or 0", not "null or ''"
    * New search tests from ruslan
    * added an init_data method to t/utils.pl
    * CleanSlate doesnt init show_rows
    * CleanSlate doesnt clean _{open|close}_parens
    * get rid of stupid ifs in CleanSlate
    * get rid of evals in _DoSearch and _DoCount, use Handle methods to control DBI error handling
    * rewrite LoadByPrimaryKeys args handling to consistent with other Load* methods
    * report error when PK filed is missing in LoadByPrimaryKeys
    * fix warning in __Set methods when newvalue is undef
    * small code cleanups
    * test coverage grows from 75.2% to 84.7% for Record.pm


1.30_02 Sun May 22 15:21:19 EDT 2005

 - Lots of patches from Ruslan:

   First and main change is using of `goto &$AUTOLOAD` syntax, that helps
   avoid code duplication and hides AUTOLOAD sub from stack trace. I think
   this also would help implement CompileAllAutoSubs method easier.

 - It's also one of the steps to better tests coverage.

 - Test coverage for Record.pm grows from 66% to 75.2%.

 - _LoadFromSQL never reported error when PK fields are missed. Fixed.

 - fetchrow_hashref dies only when RaiseErrors is true, because we can
   control this from Handle obj so we should die according to
   $Handle->RaiseErrors property. Fixed.
 - When RaiseErrors is "false" then fetchrow_hashref returns undef and we
   should check $sth->err(see `perldoc DBI`). Fixed.

 - After call to fetchrow we should clean "fetched" internal hash and fill
   it only when we return successful result. Fixed.

 - If SimpleQuery fails, _LoadFromSQL method doesn't return any error
   message. Fixed.

1.30_01 Mon May 16 21:37:03 BST 2005

    - Patches from Ruslan to switch to using 'capitalization.pm' for our regular_case subroutine aliases

1.27 Sun May  8 22:49:30 EDT 2005

    - Added supoprt for functions containing "?" to represent the parameter
        in ->Column()
    - Added better support for functional columns in search listings and
      group by clauses

1.26 Sun Apr 17 19:22:23 EDT 2005
    - Added support for expression based left joins


1.25 Sat Apr  9 12:33:30 EDT 2005

    - Backed out a change introduced in 1.23 that caused table and column names
      to be quoted, causing Postgres to flip out.

1.24 Wed Apr  6 22:54:37 EDT 2005
    - Added a new "SearchBuilder::Unique" module for uniquifying search results

1.23
    - Now use DBI->quote_identifier to quote column and table names (Ruslan)
    - Test suite updates (Ruslan)
2005-11-24 18:54:21 +00:00
jlam
7fbb8d9527 Bump the PKGREVISIONs of all (638) packages that hardcode the locations
of Perl files to deal with the perl-5.8.7 update that moved all
pkgsrc-installed Perl files into the "vendor" directories.
2005-08-06 06:19:03 +00:00
jlam
7a6521287b Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}.  There is no change to the binary
packages.
2005-07-13 18:01:18 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
cube
bd5c0f749b Update to 1.22.
1.22 Mon Jan 24 07:42:46 EST 2005
    - Require encode since we require encode.
1.21
    - Oracle LOB handling caused us to corrupt item values on update.
    - Just before inserting things into the database, turn off their utf8 flag.
      The flag didn't have any positve impact _and_ it can take down
      recent DBD::Oracle releases. (This is a new failure in DBD::Oracle 1.16)
1.20 Tue Jan 18 08:24:15 EST 2005
    - Minor test suite fixes from Ruslan.
1.19 Sat Jan  8 18:22:59 EST 2005
    - Performing a search multiple times could result in multiple copies of
      records in a collection. Uncovered thanks to Kevin Chen and Alex Vandiver.
1.18
    - Release the changes from 1.17
1.17_03
    - Properly mark BLOB columns in UPDATE calls. (DBD::Oracle 1.16 broke without this)
1.17_02
    - Better handling of empty values for SB::Record::_Accessible. ( --Ruslan)
1.17_01
    - More record tests from Ruz
1.16 Thu Dec  9 23:49:39 EST 2004
    - Fixed a bug in D::SB::R::Cachable that could cause it to load the wrong row from the cache if you were loading
      by alternate keys and had since changed one of the attributes of a previous row.  This was unmasked by a
      bug that Ruslan Zakirov found in RT 3.3's custom field handling
2005-03-24 17:00:14 +00:00
agc
671d62d2e2 Add RMD160 digests in addition to SHA1 ones. 2005-02-23 16:33:05 +00:00
grant
908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00
he
98b397d5bc Update p5-DBIx-SearchBuilder from version 1.01 to 1.15.
Add HOMEPAGE pointing into search.cpan.org.
Add DEPENDS on p5-Cache-Simple-TimedExpiry, as that appears to be required
to have "make test" complete.


Change log:

1.15 Sat Nov 27 13:09:56 EST 2004
    - Fix a testsuite bug when DBD::SQLite isn't there

1.14
    - Silenced warnings about uninitialized warnings when inserting null cols
      into the database.
    - Started adding lowercase method name aliases
    - Minor refactoring of 'id' method for a stupid, tiny perf improvement
    - Refactoring of DBIx::SearchBuilder::Record::Cachable for performance
      improvement
    - Added a FlushCache method to DBIx::SearchBuilder::Record::Cachable.
    - Started to flesh out a...test suite
    - SearchBuilder now truncates strings before inserting them into character
      types in the database as mysql generally does. Additionally, it truncates
      things at utf8 character boundaries...as mysql does not.
    - Fix for an undefined record cache warning on load from Autrijus Tang
    - Major documentation cleanups --Simon Cavalletto
    - A few tweaks to the ::Record class to eliminate the
      hard-coding of the name of the id column --Simon Cavalletto

1.12
    - Better error handling for some query build failure cases
    - Corrected query builder for SQLite
    - More refactoring.

1.11
    - When loading an object whose "id" has been altered, as in
      the case of RT's "Merge" functionality, the wrong object was
      returned by the caching layer.  Special casing for the "id"
      method was removed.

1.10
    - Identical to 1.10_05

1.10_05
    - Reworked the _Accessible mechanism in DBIx::SearchBuilder::Record to
      remove a horribly crufty old caching mechanism that created a copy
      of the accessible hash for each and every object instantiated,
      sometimes quite slowly.

1.10_04 Mon Aug 30 17:33:18 EDT 2004

A query builder fix for an issue that bit RT2:

 Unsatisfied dependency chain in Joins Users_2 at /usr/local/share/perl/5.8.3/DBIx/SearchBuilder/Handle.pm line 965,  line 69.

Stack:
  [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder/Handle.pm:965]
  [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:326]
  [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:119]
  [/usr/local/share/perl/5.8.3/DBIx/SearchBuilder.pm:410]


1.10_03 Mon Aug 30 14:31:10 EDT 2004
        - Cache Sanity fixes from Autrijus Tang <autrijus@autrijus.org>

1.10_02 Thu Aug 26 13:31:13 EDT 2004

1.10_01 Thu Aug 26 00:08:31 EDT 2004
        - Reimplemented DBIx::SearchBuilder:::Record::Cachable
          to use Cache::Simple::TimedExpiry. This should make it faster and more
          memory efficient.

1.02_03 Thu Jul 22 13:29:17 EDT 2004
        - Additional bullet proofing for joins.
          Now we default to ALIAS1 being "main"  (cubic@acronis.ru)

1.02_02 Tue Jul 20 13:06:06 EDT 2004
        - Fixed a join bug that mostly manifests as a 'Dependency chain'
          error on RT2.

1.02_01 Wed Jul  7 12:28:08 EDT 2004
        - magic _Object instantiation from cubic@acronis.ru
        - make SB::_Handle settable directly  (cubic@acronis.ru)
        - document the above
2004-12-05 17:34:25 +00:00
seb
ab777db6a5 The PostgreSQL backend needs the Perl5 Want module.
Bump PKGREVISION.
2004-11-14 14:18:39 +00:00
cube
dad9e9f679 Update to version 1.01.
1.01    Sun Jun 27 23:35:46 EDT 2004

        - Releasing 1.00_06 as stable

1.00_06 - Pg/Oracle: Don't attempt to do case insensitive comparisons on
          integer values.

1.00_05 - Force utf8 flag on when doing searches for utf8 data; this
          is a workaround for DBDs that don't do it themselves.

1.00_04	- Move Postgres specific join behaviour to the superclass so
	  everyone gets the benefit.

1.00_03 - Remove "AS" from table name aliases on joins, since Oracle
          doesn't like em.

1.00_02	- Slightly cleaner code in SearchBuilder->GotoPage

1.00_01 - Better handling of case insensitive comparisons on Postgres
	- Proper support for query paging on SQLite
2004-08-02 09:57:02 +00:00
recht
356a0df14f Update to 0.99
Patch provided by Dieter Roelants in PR pkg/25132

0.99	- Bundled changes from 0.98* and released production version
	  Removed duplicate code in cache expiry routines
          Experimental SearchBuilder::Union collection object.

	  Released at the YAPC::Taipei::22004 Release Party

0.98_04 - New mysql/oracle "Join" code that allows more complex bundling of
	  joins from Linda and Robert

0.98_03 - New test infrastructure from Andy Lester

0.98_02 - Better handling of != clauses on Postgres

0.97_02 - Support for "Group By" clauses.
          Support for delayed load of certain columns from Autrijus Tang.

0.97_01 - Oracle doesn't support binary-safe clobs in a reasonable manner.

0.96    - Releasing 0.96_01 as usable

0.96_01 - Fix a couple of spurious warnings in Record::Cachable
          Records loaded from multiple-record searches were never cached
          correctly

0.95_03 - Allow case-insensitive loading by columns in SearchBuilder::Record
        - Record::LoadByCols now lets you specify operator and values

0.95_01
        - Removed historical escaping for non-ascii searche queries

0.94-   - Fix for multiple handles in one app from Autrijus Tang

0.93
        - Added ODBC database driver from Autrijus Tang
        - Added the ability to sort on functions of columns from Autrijus Tang
        - Improved case-insensitve searching behavior for PostgreSQL
        - Added support for multiple handles in one app from Autrijus Tang (#4167)
        - Added initial Informix database driver from Oliver Tappe

0.92    Sept 4, 2003
        - Fixed a bug that caused certain types of pre-canned table aliases to fail to work on join

0.90    Aug 8, 2003
        - Disable Class::ReturnValue's stack trace feature as it interacted poorly with a stack containing lots of data

0.89_02 July 19, 2003
	- Patch from Grant DeGraw to allow ordering by multiple columns.

0.89_01 July 18 2003
	- Patch from Brook for:
	-	better oracle support
	-   	remove "SELECT DISTINCT" when it's not necessary

0.88 June 23 2003
        - More correct generation of "Distinct" keyword on counts for queries with left joins

0.87 June 16 2003
        - Changed DBIx::SB::Record::Cachable to expire cached object when a "deeper" method call changes their values

0.86 June 7 2003
        - Doing conditional connections was failing on postgres, because the handle was defined, but not connected

0.85 June 7 2003
        - Stan's destroy fix was actually badly breaking RT
        - It's now an optional parameter.
2004-04-11 16:12:40 +00:00
martti
e69ab8c365 COMMENT should start with a capital letter. 2003-07-21 16:35:12 +00:00
grant
91f00f1cbc s/netbsd.org/NetBSD.org/ 2003-07-17 21:21:03 +00:00
mjl
482668275a Update p5-DBIx-SearchBuilder to 0.84
- Provide support for blowing away nested transactions
    that aren't yet committed
  - Fixed how values of returned hashes are downcased.
  - Should be a minor perf improvement
  - Moved Stan's destryo fix to the right file
  - Better oracle support for unique ids on indexes
  - DESTROY fix
  - make function naming for autoloaded functions a bit more flexible
  - Query builder changes to improve some join performance
  - Fixes to a tight loop for cache expiry
  - Patches for Oracle BLOB support from Brook Schofield
  - Rebuilt Postgres query generator
  - Select Distinct altered to support oracle
2003-06-06 12:00:06 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
mjl
dcf4a620cc Update p5-DBIx-SearchBuilder to 0.80
- Count method enhanced to ignore "LIMIT"s
  - LIMIT behaviour changed to be handle specific
  - ReadableAttributes and WritableAttributes added as methods to Record.pm
  - SB->Count should return no results unless the search is limited
  - Eliminate a warning on empty searches
  - No longer attempt to cache (and fail) objects that haven't been
    database-loaded
2003-04-21 18:14:53 +00:00
mjl
83e0a24f19 Update p5-DBIx-SearchBuilder to 0.76
Extra checking for cache misses in DBIx::SearchBuilder::Record::Cachable
	The start of support for checking database version, so that we can do
	version-specific SQL
	utf-8 safe searching
	arbitrarily complex grouping clauses.
	complex query generation.
	Adding support for mysqlPP
	Fixed a caching bug that caused multiple copies of an object in memory to not
	be kept in sync
	Fixed bug in setting a column to the value of an SQL statement.
	Better support for Postgres 7.2 and transactions.
	Support for Class::ReturnValue to channel errors up when expected
	Dependency on Class::ReturnValue
	Minor cleanups and refactorings to allow percolation of errors on create
2003-01-02 15:36:33 +00:00
seb
25e9e6b0ea Use buildlink2. Use perl5/module.mk. 2002-10-13 22:22:45 +00:00
mjl
3e97a53c44 Update p5-DBIx-SearchBuilder to 0.61
Absolutely no change log is available, unfortunately.
2002-08-31 01:19:08 +00:00
mjl
839e62c539 Update to 0.48, no changelog available. 2002-01-09 12:24:47 +00:00
mjl
ddf276511b Update to 0.47, as this is needed by the newest RT. No up to date
changes are available unfortunately.
2001-11-28 14:51:38 +00:00
jlam
cc4128d97e Buildlinkify, in the sense that only the perl headers are found in
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
2001-11-26 06:49:36 +00:00
zuntum
0ca28723fb Move pkg/ files into package's toplevel directory 2001-11-01 00:11:36 +00:00
veego
63ad910dee SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
2001-10-18 15:20:01 +00:00
mjl
44605c9d95 Update to 0.41. No changelog available. 2001-08-10 12:07:15 +00:00
mjl
4e94b7a619 Update to 0.38: Changes (incomplete, sorry, that's all there is)
- SearchBuilder.pm - refactored to allow LEFT joins.
- SearchBuilder::Record::Cachable now constructs cache keys in a way
  that doesn't lose when records in different tables have the same keys.
- Added DBIx::SearchBuilder::Record::Cachable from <mhat@netlag.com>
- Changed SearchBuilder->Count to do the right thing if no
  query has been performed
2001-06-02 11:51:40 +00:00
agc
6ef28d06c5 Move to sha1 digests, and add distfile sizes. 2001-04-18 16:10:56 +00:00
agc
5092342d3d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ include distfile filesizes in distinfo
2001-04-17 09:56:50 +00:00
mjl
b649013032 Initial import of p5-DBIx-SearchBuilder, a Perl extension for
easy SQL SELECT Statement generation.
2001-03-25 04:43:40 +00:00