[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok
From: Martin Aumüller <aumuell () reserv ! at>
Date: 2006-08-05 20:06:35
Message-ID: 1154808395.306322.18003.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 570151 by aumuell:
- make comment field a long text to accomodate the full length of id3v2 comments
- extend exact text default size to 1024 characters as this is the PATH_MAX limit on \
linux systems
BUG: 130585
CCBUG: 119720
M +1 -0 ChangeLog
M +1 -1 src/collectiondb.cpp
M +2 -2 src/collectiondb.h
--- trunk/extragear/multimedia/amarok/ChangeLog #570150:570151
@@ -34,6 +34,7 @@
to iTunes, Firefly Media Server etc. (BR 100513)
CHANGES:
+ * Lift size limit on pathnames and comments in collection db. (BR 130585)
* Generic mediadevice plugin is improved. Users can configure supported
filetypes and get more control over the location of songs and podcasts on disk
(Patch by eute).
--- trunk/extragear/multimedia/amarok/src/collectiondb.cpp #570150:570151
@@ -561,7 +561,7 @@
"genre INTEGER,"
"title " + textColumnType() + ","
"year INTEGER,"
- "comment " + textColumnType() + ","
+ "comment " + longTextColumnType() + ","
"track NUMERIC(4),"
"discnumber INTEGER,"
"bitrate INTEGER,"
--- trunk/extragear/multimedia/amarok/src/collectiondb.h #570150:570151
@@ -247,7 +247,7 @@
//exactTextColumnType should be used for strings that must be stored \
exactly, such
//as URLs (necessary for holding control chars etc. if present in URL), \
except for
//trailing spaces. Comparisions should always be done case-sensitively.
- QString exactTextColumnType( int length=255 ) const { if ( \
getDbConnectionType() == DbConnection::mysql ) return QString( "VARBINARY(%1)" ).arg( \
length ); else return textColumnType( length ); } + QString \
exactTextColumnType( int length=1024 ) const { if ( getDbConnectionType() == \
DbConnection::mysql ) return QString( "VARBINARY(%1)" ).arg( length ); else return \
textColumnType( length ); }
// We might consider using LONGTEXT type, as some lyrics could be VERY \
long..???
QString longTextColumnType() const { if ( getDbConnectionType() == \
DbConnection::postgresql ) return "TEXT"; else return "TEXT"; }
QString randomFunc() const { if ( getDbConnectionType() == \
DbConnection::postgresql ) return "random()"; else return "RAND()"; } @@ -485,7 \
+485,7 @@ private:
//bump DATABASE_VERSION whenever changes to the table structure are made.
// This erases tags, album, artist, composer, genre, year, images, embed, \
directory and related_artists tables.
- static const int DATABASE_VERSION = 32;
+ static const int DATABASE_VERSION = 33;
// Persistent Tables hold data that is somehow valuable to the user, and \
can't be erased when rescaning. // When bumping this, write code to convert the \
data! static const int DATABASE_PERSISTENT_TABLES_VERSION = 14;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic