NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
Scheduled_Recordings - Filename field limited to 50 characters?

 
  • 0 Vote(s) - 0 Average
Scheduled_Recordings - Filename field limited to 50 characters?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#1
2015-10-28, 10:09 PM
I've been having some intermittent issues with some of my scripts related to renaming. I've been looking in the DB, and I noticed that the filename field in SCHEDULED_RECORDINGS is only 50 bytes... That ends up truncating many of my recording filenames. Is that expected?
[ATTACHMENT NOT FOUND]

Code:
CREATE TABLE [SCHEDULED_RECORDING] (
    [oid] integer PRIMARY KEY AUTOINCREMENT NOT NULL,
    [name] varchar(50) NOT NULL,
    [filename] varchar(50) NOT NULL,
    [status] integer NOT NULL,
    [start_time] datetime NOT NULL,
    [end_time] datetime NOT NULL,
    [capture_source_oid] integer NOT NULL,
    [channel_oid] integer NOT NULL,
    [recurrence_oid] integer NOT NULL,
    [channel_name] varchar(50) NOT NULL,
    [event_details] varchar(50) NOT NULL,
    [failure_reason] varchar(50) NOT NULL,
    [pre_padding] integer NOT NULL,
    [post_padding] integer NOT NULL,
    [quality] integer NOT NULL
, red CHAR(1), green CHAR(1), yellow CHAR(1), blue CHAR(1));
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2015-10-28, 10:12 PM
SQLite ignores those sizes. You can store whatever length string you want to in their varchar fields.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#3
2015-10-28, 10:15 PM
From the FAQ:
Quote:(9) What is the maximum size of a VARCHAR in SQLite?


SQLite does not enforce the length of a VARCHAR. You can declare a VARCHAR(10) and SQLite will be happy to store a 500-million character string there. And it will keep all 500-million characters intact. Your content is never truncated. SQLite understands the column type of "VARCHAR(N)" to be the same as "TEXT", regardless of the value of N.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#4
2015-10-28, 10:17 PM
The sqlite GUI utility I use defaults to the defined values for viewing unless I change a format setting to map all varchars to 8191

Marin
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#5
2015-10-28, 10:40 PM
Right you are... My client (SqlLiteAdministrator) however does respect the field definitions and appears to truncate visually when displaying Smile. Thanks.

What SQLite client do you typically use?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,132
Threads: 957
Joined: May 2006
#6
2015-10-28, 10:43 PM
I use sqliteexplorer. Some people like browser adds but I vnc to my backup so I don't want the overhead of opening a browser (and keeping them update to date).

Martin
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#7
2015-10-28, 10:46 PM
Thanks, I'll check that out.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Status field values in Table SCHEDULED_RECORDING scJohn 2 2,406 2019-07-03, 07:01 PM
Last Post: sub
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,239 2015-07-13, 09:28 PM
Last Post: patco444
  Replace characters in strings bgowland 5 2,557 2013-07-06, 03:42 AM
Last Post: mvallevand
  Interpretting RECURRING_RECORDING match_rules field bgowland 7 3,439 2013-04-24, 02:54 AM
Last Post: bgowland
  How to convert special characters to use for a URL bgowland 2 1,589 2012-01-21, 05:35 PM
Last Post: bgowland
  Suppressing the Date/Time field from global.xml ACTCMS 7 3,328 2010-11-18, 01:36 AM
Last Post: ACTCMS
  @nowPlaying field question ACTCMS 7 3,079 2008-05-01, 05:02 AM
Last Post: bgowland
  Legend for RECORDING_SCHEDULE:status field jdonth 4 1,923 2007-12-20, 09:22 PM
Last Post: jdonth
  Swedish Characters in VB zehd 1 1,419 2006-11-15, 07:29 PM
Last Post: stefan
  Rating field in programme-table alibert 2 1,715 2006-01-13, 02:42 AM
Last Post: UncleJohnsBand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode